Neomerx\JsonApi\Schema\ResourceObject::getAttributes PHP Метод

getAttributes() публичный Метод

public getAttributes ( )
    public function getAttributes()
    {
        if ($this->attributes === null) {
            $attributes = $this->schema->getAttributes($this->resource);
            if ($this->attributeKeysFilter !== null) {
                $attributes = array_intersect_key($attributes, $this->attributeKeysFilter);
            }
            $this->attributes = $attributes;
        }
        return $this->attributes;
    }