public function pop() { $stmt = $this->pdo->query($this->getPopSql()); $result = $stmt->fetchColumn(); $stmt->closeCursor(); if (false === $result) { throw new NoItemAvailableException($this); } return $result; }