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

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

        return $this->getName();
    }
public function name ( $ name = null ) { deprecationWarning ( get_called_class ( ) . '::name() is deprecated. ' . 'Use setName()/getName() instead.' ) ; if ( $ name !== null ) { $ this -> setName ( $ name ) ; } return $ this -> getName ( ) ; }
Sets the name for this association.

@deprecated 3.4.0 Use setName()/getName() instead.
@param string|null $name Name to be assigned
@return string
Sets the name for this association .