/** * @param Connection $db * @param Cube $cube * @return DB\Cube */ public static function getCube(Connection $db, Cube $cube) { if (empty(self::$cubes[$cube->getName()])) { self::$cubes[$cube->getName()] = new DB\Cube($db, $cube); } return self::$cubes[$cube->getName()]; }
public function get() { return $this->cube->get(); }