PHP Класс Neomerx\JsonApi\Exceptions\ErrorCollection

Наследование: implements IteratorAggregat\IteratorAggregate, implements ArrayAcces\ArrayAccess, implements Serializabl\Serializable, implements Countabl\Countable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
add ( Neomerx\JsonApi\Contracts\Document\ErrorInterface $error )
addDataAttributeError ( string $name, string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
addDataError ( string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
addDataIdError ( string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
addDataTypeError ( string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
addQueryParameterError ( string $name, string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
addRelationshipError ( string $name, string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
addRelationshipIdError ( string $name, string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
addRelationshipTypeError ( string $name, string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
addRelationshipsError ( string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
count ( )
getArrayCopy ( ) : Neomerx\JsonApi\Contracts\Document\ErrorInterface[]
getIterator ( )
offsetExists ( $offset )
offsetGet ( $offset ) : Neomerx\JsonApi\Contracts\Document\ErrorInterface
offsetSet ( $offset, $value )
offsetUnset ( $offset )
serialize ( )
unserialize ( $serialized )

Защищенные методы

Метод Описание
addResourceError ( string $title, string $pointer, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
getPathToAttribute ( string $name ) : string
getPathToData ( ) : string
getPathToId ( ) : string
getPathToRelationship ( string $name ) : string
getPathToRelationshipId ( string $name ) : string
getPathToRelationshipType ( string $name ) : string
getPathToRelationships ( ) : string
getPathToType ( ) : string

Описание методов

add() публичный Метод

public add ( Neomerx\JsonApi\Contracts\Document\ErrorInterface $error )
$error Neomerx\JsonApi\Contracts\Document\ErrorInterface

addDataAttributeError() публичный Метод

public addDataAttributeError ( string $name, string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
$name string
$title string
$detail string | null
$status integer | string | null
$idx integer | string | null
$aboutLink Neomerx\JsonApi\Contracts\Document\LinkInterface
$code integer | string | null
$meta mixed | null

addDataError() публичный Метод

public addDataError ( string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
$title string
$detail string | null
$status integer | string | null
$idx integer | string | null
$aboutLink Neomerx\JsonApi\Contracts\Document\LinkInterface
$code integer | string | null
$meta mixed | null

addDataIdError() публичный Метод

public addDataIdError ( string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
$title string
$detail string | null
$status integer | string | null
$idx integer | string | null
$aboutLink Neomerx\JsonApi\Contracts\Document\LinkInterface
$code integer | string | null
$meta mixed | null

addDataTypeError() публичный Метод

public addDataTypeError ( string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
$title string
$detail string | null
$status integer | string | null
$idx integer | string | null
$aboutLink Neomerx\JsonApi\Contracts\Document\LinkInterface
$code integer | string | null
$meta mixed | null

addQueryParameterError() публичный Метод

public addQueryParameterError ( string $name, string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
$name string
$title string
$detail string | null
$status integer | string | null
$idx integer | string | null
$aboutLink Neomerx\JsonApi\Contracts\Document\LinkInterface
$code integer | string | null
$meta mixed | null

addRelationshipError() публичный Метод

public addRelationshipError ( string $name, string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
$name string
$title string
$detail string | null
$status integer | string | null
$idx integer | string | null
$aboutLink Neomerx\JsonApi\Contracts\Document\LinkInterface
$code integer | string | null
$meta mixed | null

addRelationshipIdError() публичный Метод

public addRelationshipIdError ( string $name, string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
$name string
$title string
$detail string | null
$status integer | string | null
$idx integer | string | null
$aboutLink Neomerx\JsonApi\Contracts\Document\LinkInterface
$code integer | string | null
$meta mixed | null

addRelationshipTypeError() публичный Метод

public addRelationshipTypeError ( string $name, string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
$name string
$title string
$detail string | null
$status integer | string | null
$idx integer | string | null
$aboutLink Neomerx\JsonApi\Contracts\Document\LinkInterface
$code integer | string | null
$meta mixed | null

addRelationshipsError() публичный Метод

public addRelationshipsError ( string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
$title string
$detail string | null
$status integer | string | null
$idx integer | string | null
$aboutLink Neomerx\JsonApi\Contracts\Document\LinkInterface
$code integer | string | null
$meta mixed | null

addResourceError() защищенный Метод

protected addResourceError ( string $title, string $pointer, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
$title string
$pointer string
$detail string | null
$status integer | string | null
$idx integer | string | null
$aboutLink Neomerx\JsonApi\Contracts\Document\LinkInterface
$code integer | string | null
$meta mixed | null

count() публичный Метод

public count ( )

getArrayCopy() публичный Метод

public getArrayCopy ( ) : Neomerx\JsonApi\Contracts\Document\ErrorInterface[]
Результат Neomerx\JsonApi\Contracts\Document\ErrorInterface[]

getIterator() публичный Метод

public getIterator ( )

getPathToAttribute() защищенный Метод

protected getPathToAttribute ( string $name ) : string
$name string
Результат string

getPathToData() защищенный Метод

protected getPathToData ( ) : string
Результат string

getPathToId() защищенный Метод

protected getPathToId ( ) : string
Результат string

getPathToRelationship() защищенный Метод

protected getPathToRelationship ( string $name ) : string
$name string
Результат string

getPathToRelationshipId() защищенный Метод

protected getPathToRelationshipId ( string $name ) : string
$name string
Результат string

getPathToRelationshipType() защищенный Метод

protected getPathToRelationshipType ( string $name ) : string
$name string
Результат string

getPathToRelationships() защищенный Метод

protected getPathToRelationships ( ) : string
Результат string

getPathToType() защищенный Метод

protected getPathToType ( ) : string
Результат string

offsetExists() публичный Метод

public offsetExists ( $offset )

offsetGet() публичный Метод

public offsetGet ( $offset ) : Neomerx\JsonApi\Contracts\Document\ErrorInterface
Результат Neomerx\JsonApi\Contracts\Document\ErrorInterface

offsetSet() публичный Метод

public offsetSet ( $offset, $value )

offsetUnset() публичный Метод

public offsetUnset ( $offset )

serialize() публичный Метод

public serialize ( )

unserialize() публичный Метод

public unserialize ( $serialized )