public function setDatabase($database)
    {
        if (is_string($database)) {
            $database = $this->db->getDatabase($database);
        }

        $this->database = $database;

        return $this;
    }
public function setDatabase($database)
    {
        if (is_string($database)) {
            $database = $this->db->getDatabase($database);
        }

        $this->database = $database;

        return $this;
    }
public function setDatabase ( $ database ) { if ( is_string ( $ database ) ) { $ database = $ this -> db -> getDatabase ( $ database ) ; } $ this -> database = $ database ; return $ this ; }
Method to set property database

@param   AbstractDatabase|string $database

@return  static  Return self to support chaining.
Method to set property database