Storm\Drivers\Base\Relational\Columns\ObjectDataType::MapPropertyFetchExpression PHP Метод

MapPropertyFetchExpression() закрытый публичный Метод

final public MapPropertyFetchExpression ( Expression $ObjectValueExpression = null, $Name )
$ObjectValueExpression Storm\Core\Relational\Expressions\Expression
    public final function MapPropertyFetchExpression(Expression $ObjectValueExpression = null, $Name)
    {
        $MapperMethodName = 'Prop_' . $Name;
        if (!method_exists($this, $MapperMethodName)) {
            throw new \Storm\Core\NotSupportedException('Data type does not support property %s::$%s', $this->ClassType, $Name);
        }
        $IsStatic = $ObjectValueExpression === null;
        if ($IsStatic) {
            return $this->{$MapperMethodName}();
        } else {
            return $this->{$MapperMethodName}($ObjectValueExpression);
        }
    }