public function isEntityAttribute(string $key)
    {
        $key = $this->getEntityAttributeName($key);

        return $this->getEntityAttributes()->has($key);
    }
public function isEntityAttribute(string $key)
    {
        $key = $this->getEntityAttributeName($key);

        return $this->getEntityAttributes()->has($key);
    }
public function isEntityAttribute ( string $ key ) { $ key = $ this -> getEntityAttributeName ( $ key ) ; return $ this -> getEntityAttributes ( ) -> has ( $ key ) ; }
Check if the given key is an entity attribute.

@param string $key

@return mixed
Check if the given key is an entity attribute .