public function getCompiledAttributes(): array
    {
        $key = $this->getKeyName();

        $embeddables = array_keys($this->getEmbeddables());

        $relationships = $this->getRelationships();

        $attributes = $this->getAttributes();

        return array_merge([$key], $embeddables, $relationships, $attributes);
    }
public function getCompiledAttributes(): array
    {
        $key = $this->getKeyName();

        $embeddables = array_keys($this->getEmbeddables());

        $relationships = $this->getRelationships();

        $attributes = $this->getAttributes();

        return array_merge([$key], $embeddables, $relationships, $attributes);
    }
public function getCompiledAttributes ( ) : array { $ key = $ this -> getKeyName ( ) ; $ embeddables = array_keys ( $ this -> getEmbeddables ( ) ) ; $ relationships = $ this -> getRelationships ( ) ; $ attributes = $ this -> getAttributes ( ) ; return array_merge ( [ $ key ] , $ embeddables , $ relationships , $ attributes ) ; }
Get all the attribute names for the class, including relationships, embeddables and primary key.

@return array
Get all the attribute names for the class including relationships embeddables and primary key .