PHP Class Neomerx\JsonApi\Exceptions\ErrorCollection

Inheritance: implements IteratorAggregat\IteratorAggregate, implements ArrayAcces\ArrayAccess, implements Serializabl\Serializable, implements Countabl\Countable
Afficher le fichier Open project: neomerx/json-api Class Usage Examples

Méthodes publiques

Méthode Description
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 )

Méthodes protégées

Méthode Description
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

Method Details

add() public méthode

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

addDataAttributeError() public méthode

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 méthode

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 méthode

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 méthode

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 méthode

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 méthode

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 méthode

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 méthode

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 méthode

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 méthode

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 méthode

public count ( )

getArrayCopy() public méthode

public getArrayCopy ( ) : Neomerx\JsonApi\Contracts\Document\ErrorInterface[]
Résultat Neomerx\JsonApi\Contracts\Document\ErrorInterface[]

getIterator() public méthode

public getIterator ( )

getPathToAttribute() protected méthode

protected getPathToAttribute ( string $name ) : string
$name string
Résultat string

getPathToData() protected méthode

protected getPathToData ( ) : string
Résultat string

getPathToId() protected méthode

protected getPathToId ( ) : string
Résultat string

getPathToRelationship() protected méthode

protected getPathToRelationship ( string $name ) : string
$name string
Résultat string

getPathToRelationshipId() protected méthode

protected getPathToRelationshipId ( string $name ) : string
$name string
Résultat string

getPathToRelationshipType() protected méthode

protected getPathToRelationshipType ( string $name ) : string
$name string
Résultat string

getPathToRelationships() protected méthode

protected getPathToRelationships ( ) : string
Résultat string

getPathToType() protected méthode

protected getPathToType ( ) : string
Résultat string

offsetExists() public méthode

public offsetExists ( $offset )

offsetGet() public méthode

public offsetGet ( $offset ) : Neomerx\JsonApi\Contracts\Document\ErrorInterface
Résultat Neomerx\JsonApi\Contracts\Document\ErrorInterface

offsetSet() public méthode

public offsetSet ( $offset, $value )

offsetUnset() public méthode

public offsetUnset ( $offset )

serialize() public méthode

public serialize ( )

unserialize() public méthode

public unserialize ( $serialized )