public function __construct(Database $db, array $methods = array()) { $this->db = $db; $this->methods = $methods; }