LMongo\Eloquent\Model::getArrayableAttributes PHP Method

getArrayableAttributes() protected method

Get an attribute array of all arrayable attributes.
protected getArrayableAttributes ( ) : array
return array
    protected function getArrayableAttributes()
    {
        if (count($this->visible) > 0) {
            return array_intersect_key($this->attributes, array_flip($this->visible));
        }
        return array_diff_key($this->attributes, array_flip($this->hidden));
    }
Model