public function entityClass($name = null)
    {
        deprecationWarning(
            get_called_class() . '::entityClass() is deprecated. ' .
            'Use setEntityClass()/getEntityClass() instead.'
        );
        if ($name !== null) {
            $this->setEntityClass($name);
        }

        return $this->getEntityClass();
    }
public function entityClass($name = null)
    {
        deprecationWarning(
            get_called_class() . '::entityClass() is deprecated. ' .
            'Use setEntityClass()/getEntityClass() instead.'
        );
        if ($name !== null) {
            $this->setEntityClass($name);
        }

        return $this->getEntityClass();
    }
public function entityClass ( $ name = null ) { deprecationWarning ( get_called_class ( ) . '::entityClass() is deprecated. ' . 'Use setEntityClass()/getEntityClass() instead.' ) ; if ( $ name !== null ) { $ this -> setEntityClass ( $ name ) ; } return $ this -> getEntityClass ( ) ; }
Returns the class used to hydrate rows for this table or sets
a new one

@deprecated 3.4.0 Use setEntityClass()/getEntityClass() instead.
@param string|null $name The name of the class to use
@throws \Cake\ORM\Exception\MissingEntityException when the entity class cannot be found
@return string
Returns the class used to hydrate rows for this table or sets a new one