public function schemaCollection(SchemaCollection $collection = null)
    {
        deprecationWarning(
            'Connection::schemaCollection() is deprecated. ' .
            'Use Connection::setSchemaCollection()/getSchemaCollection() instead.'
        );
        if ($collection !== null) {
            $this->setSchemaCollection($collection);
        }

        return $this->getSchemaCollection();
    }
public function schemaCollection(SchemaCollection $collection = null)
    {
        deprecationWarning(
            'Connection::schemaCollection() is deprecated. ' .
            'Use Connection::setSchemaCollection()/getSchemaCollection() instead.'
        );
        if ($collection !== null) {
            $this->setSchemaCollection($collection);
        }

        return $this->getSchemaCollection();
    }
public function schemaCollection ( SchemaCollection $ collection = null ) { deprecationWarning ( 'Connection::schemaCollection() is deprecated. ' . 'Use Connection::setSchemaCollection()/getSchemaCollection() instead.' ) ; if ( $ collection !== null ) { $ this -> setSchemaCollection ( $ collection ) ; } return $ this -> getSchemaCollection ( ) ; }
Gets or sets a Schema\Collection object for this connection.

@deprecated 3.4.0 Use setSchemaCollection()/getSchemaCollection()
@param \Cake\Database\Schema\Collection|null $collection The schema collection object
@return \Cake\Database\Schema\Collection
Gets or sets a Schema \ Collection object for this connection .