protected function getMetaData($propertyPath, $processedValue, $object) {
		$metaData = [];

		foreach ($this->metaDataProcessors as $metaDataProcessorKey => $metaDataProcessorConfiguration) {
			if (!isset($this->metaDataProcessorStorage[$metaDataProcessorKey])) {
				$this->metaDataProcessorStorage[$metaDataProcessorKey] = [];
			}

			$path = $metaDataProcessorConfiguration['path'];

			if (preg_match($path, $propertyPath)) {
				/** @var \Netlogix\Crud\Domain\Service\MetaDataProcessor\AbstractMetaDataProcessor $processor */
				$processor = $metaDataProcessorConfiguration['processor'];
				$metaData = $processor->process($metaData, $propertyPath, $processedValue, $this->metaDataProcessorStorage[$metaDataProcessorKey], $object, $this->uriBuilder, $this->metaDataProcessorGroup);
			}
		}

		return $metaData;
	}
protected function getMetaData($propertyPath, $processedValue, $object) {
		$metaData = [];

		foreach ($this->metaDataProcessors as $metaDataProcessorKey => $metaDataProcessorConfiguration) {
			if (!isset($this->metaDataProcessorStorage[$metaDataProcessorKey])) {
				$this->metaDataProcessorStorage[$metaDataProcessorKey] = [];
			}

			$path = $metaDataProcessorConfiguration['path'];

			if (preg_match($path, $propertyPath)) {
				/** @var \Netlogix\Crud\Domain\Service\MetaDataProcessor\AbstractMetaDataProcessor $processor */
				$processor = $metaDataProcessorConfiguration['processor'];
				$metaData = $processor->process($metaData, $propertyPath, $processedValue, $this->metaDataProcessorStorage[$metaDataProcessorKey], $object, $this->uriBuilder, $this->metaDataProcessorGroup);
			}
		}

		return $metaData;
	}
protected function getMetaData ( $ propertyPath , $ processedValue , $ object ) { $ metaData = [ ] ; foreach ( $ this -> metaDataProcessors as $ metaDataProcessorKey => $ metaDataProcessorConfiguration ) { if ( ! isset ( $ this -> metaDataProcessorStorage [ $ metaDataProcessorKey ] ) ) { $ this -> metaDataProcessorStorage [ $ metaDataProcessorKey ] = [ ] ; } $ path = $ metaDataProcessorConfiguration [ 'path' ] ; if ( preg_match ( $ path , $ propertyPath ) ) { /** @var \Netlogix\Crud\Domain\Service\MetaDataProcessor\AbstractMetaDataProcessor $processor */ $ processor = $ metaDataProcessorConfiguration [ 'processor' ] ; $ metaData = $ processor -> process ( $ metaData , $ propertyPath , $ processedValue , $ this -> metaDataProcessorStorage [ $ metaDataProcessorKey ] , $ object , $ this -> uriBuilder , $ this -> metaDataProcessorGroup ) ; } } return $ metaData ; }
Returns MetaData for the given property

Additional information can be any kind of data that is necessary for the client
to process its model but does not belong to the domain data. Those can be e.g.
th "readOnly" attribute or pre-fetched content of an Pointer.

FIXME: Define how to configure this.
Maybe add configuration by $this->jsonEncode and $this->process that determines
which property path shall be enhanced and which MetaData processor should be
used.

@param $propertyPath
@param $processedValue
@param mixed $object
@return array
Returns MetaData for the given property