public function setCollection(\collection $collection = null)
    {
        if ($collection === null) {
            $this->baseId = null;

            return;
        }
        $this->baseId = $collection->get_base_id();
    }
public function setCollection(\collection $collection = null)
    {
        if ($collection === null) {
            $this->baseId = null;

            return;
        }
        $this->baseId = $collection->get_base_id();
    }
public function setCollection ( \ collection $ collection = null ) { if ( $ collection === null ) { $ this -> baseId = null ; return ; } $ this -> baseId = $ collection -> get_base_id ( ) ; }
Sets the collection.

@param \collection $collection

@return void
Sets the collection .