Bolt\Storage\Entity\MagicAttributeTrait::getFields PHP Method

getFields() protected method

An internal method that builds a list of available fields depending on context
protected getFields ( ) : array
return array
    protected function getFields()
    {
        $fields = [];
        foreach ($this as $k => $v) {
            if (strpos($k, '_') !== 0) {
                $fields[] = $k;
            }
        }
        foreach ($this->_fields as $k => $v) {
            $fields[] = $k;
        }
        return $fields;
    }