PHP Class eZ\Publish\Core\REST\Server\Input\Parser\SortClause\DataKeyValueObjectClass

Inheritance: extends eZ\Publish\Core\REST\Common\Input\BaseParser
Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$dataKey string Example: 'DatePublished'.
$valueObjectClass string Example: 'eZ\Publish\API\Repository\Values\Content\Query\SortClause\DatePublished'.

Public Methods

Method Description
__construct ( string $dataKey, string $valueObjectClass ) DataKeyValueObjectClass constructor.
parse ( array $data, ParsingDispatcher $parsingDispatcher ) : eZ\Publish\API\Repository\Values\ValueObject Parse input structure.

Method Details

__construct() public method

DataKeyValueObjectClass constructor.
public __construct ( string $dataKey, string $valueObjectClass )
$dataKey string
$valueObjectClass string

parse() public method

Parse input structure.
public parse ( array $data, ParsingDispatcher $parsingDispatcher ) : eZ\Publish\API\Repository\Values\ValueObject
$data array
$parsingDispatcher eZ\Publish\Core\REST\Common\Input\ParsingDispatcher
return eZ\Publish\API\Repository\Values\ValueObject

Property Details

$dataKey protected property

Example: 'DatePublished'.
protected string $dataKey
return string

$valueObjectClass protected property

Example: 'eZ\Publish\API\Repository\Values\Content\Query\SortClause\DatePublished'.
protected string $valueObjectClass
return string