PHP Class Neomerx\JsonApi\Exceptions\ErrorCollection

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

Public Methods

Method 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 )

Protected Methods

Method 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 method

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

addDataAttributeError() public method

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 method

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 method

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 method

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 method

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 method

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 method

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 method

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 method

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 method

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 method

public count ( )

getArrayCopy() public method

public getArrayCopy ( ) : Neomerx\JsonApi\Contracts\Document\ErrorInterface[]
return Neomerx\JsonApi\Contracts\Document\ErrorInterface[]

getIterator() public method

public getIterator ( )

getPathToAttribute() protected method

protected getPathToAttribute ( string $name ) : string
$name string
return string

getPathToData() protected method

protected getPathToData ( ) : string
return string

getPathToId() protected method

protected getPathToId ( ) : string
return string

getPathToRelationship() protected method

protected getPathToRelationship ( string $name ) : string
$name string
return string

getPathToRelationshipId() protected method

protected getPathToRelationshipId ( string $name ) : string
$name string
return string

getPathToRelationshipType() protected method

protected getPathToRelationshipType ( string $name ) : string
$name string
return string

getPathToRelationships() protected method

protected getPathToRelationships ( ) : string
return string

getPathToType() protected method

protected getPathToType ( ) : string
return string

offsetExists() public method

public offsetExists ( $offset )

offsetGet() public method

public offsetGet ( $offset ) : Neomerx\JsonApi\Contracts\Document\ErrorInterface
return Neomerx\JsonApi\Contracts\Document\ErrorInterface

offsetSet() public method

public offsetSet ( $offset, $value )

offsetUnset() public method

public offsetUnset ( $offset )

serialize() public method

public serialize ( )

unserialize() public method

public unserialize ( $serialized )