public function repository(RepositoryInterface $table = null)
    {
        if ($table === null) {
            deprecationWarning(
                'Using Query::repository() as getter is deprecated. ' .
                'Use getRepository() instead.'
            );

            return $this->getRepository();
        }

        $this->_repository = $table;

        return $this;
    }
public function repository(RepositoryInterface $table = null)
    {
        if ($table === null) {
            deprecationWarning(
                'Using Query::repository() as getter is deprecated. ' .
                'Use getRepository() instead.'
            );

            return $this->getRepository();
        }

        $this->_repository = $table;

        return $this;
    }
public function repository ( RepositoryInterface $ table = null ) { if ( $ table === null ) { deprecationWarning ( 'Using Query::repository() as getter is deprecated. ' . 'Use getRepository() instead.' ) ; return $ this -> getRepository ( ) ; } $ this -> _repository = $ table ; return $ this ; }
Returns the default table object that will be used by this query,
that is, the table that will appear in the from clause.

When called with a Table argument, the default table object will be set
and this query object will be returned for chaining.

@param \Cake\Datasource\RepositoryInterface|null $table The default table object to use
@return \Cake\Datasource\RepositoryInterface|$this
Returns the default table object that will be used by this query that is the table that will appear in the from clause .