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

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

        return $this->getConditions();
    }
public function conditions ( $ conditions = null ) { deprecationWarning ( get_called_class ( ) . '::conditions() is deprecated. ' . 'Use setConditions()/getConditions() instead.' ) ; if ( $ conditions !== null ) { $ this -> setConditions ( $ conditions ) ; } return $ this -> getConditions ( ) ; }
Sets a list of conditions to be always included when fetching records from
the target association. If no parameters are passed the current list is returned

@deprecated 3.4.0 Use setConditions()/getConditions() instead.
@param array|null $conditions list of conditions to be used
@see \Cake\Database\Query::where() for examples on the format of the array
@return array|callable
Sets a list of conditions to be always included when fetching records from the target association . If no parameters are passed the current list is returned