private function processPropertyValue($instance, $property, $model, $value)
    {
        if ($this->isMorhing($model, $value)) {
            $newType = $model->getType();
            $new = static::create($newType, (array) $value);
            $property->setValue($instance, $new);
        }
    }
private function processPropertyValue($instance, $property, $model, $value)
    {
        if ($this->isMorhing($model, $value)) {
            $newType = $model->getType();
            $new = static::create($newType, (array) $value);
            $property->setValue($instance, $new);
        }
    }
private function processPropertyValue ( $ instance , $ property , $ model , $ value ) { if ( $ this -> isMorhing ( $ model , $ value ) ) { $ newType = $ model -> getType ( ) ; $ new = static :: create ( $ newType , ( array ) $ value ) ; $ property -> setValue ( $ instance , $ new ) ; } }
Converts value into domain model object
@param mixed $instance - contains empty of almost ready domain model entity
@param ReflectionProperty $property
@param AbstractEntity $model
@param \stdClass $value
Converts value into domain model object