public function target(Table $table = null)
    {
        deprecationWarning(
            get_called_class() . '::target() is deprecated. ' .
            'Use setTarget()/getTarget() instead.'
        );
        if ($table !== null) {
            $this->setTarget($table);
        }

        return $this->getTarget();
    }
public function target(Table $table = null)
    {
        deprecationWarning(
            get_called_class() . '::target() is deprecated. ' .
            'Use setTarget()/getTarget() instead.'
        );
        if ($table !== null) {
            $this->setTarget($table);
        }

        return $this->getTarget();
    }
public function target ( Table $ table = null ) { deprecationWarning ( get_called_class ( ) . '::target() is deprecated. ' . 'Use setTarget()/getTarget() instead.' ) ; if ( $ table !== null ) { $ this -> setTarget ( $ table ) ; } return $ this -> getTarget ( ) ; }
Sets the table instance for the target side of the association. If no arguments
are passed, the current configured table instance is returned

@deprecated 3.4.0 Use setTarget()/getTarget() instead.
@param \Cake\ORM\Table|null $table the instance to be assigned as target side
@return \Cake\ORM\Table
Sets the table instance for the target side of the association . If no arguments are passed the current configured table instance is returned