PhalconRest\Transformers\ModelTransformer::includedProperties PHP Method

includedProperties() protected method

protected includedProperties ( ) : array
return array Properties to be included in the response
    protected function includedProperties()
    {
        $attributes = $this->getModelAttributes();
        $columnMap = $this->getModelColumnMap();
        if (!is_array($columnMap)) {
            return $attributes;
        }
        return array_map(function ($attribute) use($columnMap) {
            return array_key_exists($attribute, $columnMap) ? $columnMap[$attribute] : $attribute;
        }, $attributes);
    }