public function criar(Disciplina $a) { $sql = 'INSERT INTO disciplina (descricao) VALUES (:descricao)'; if (!$this->encontrar($a->nome())) { $statement = $this->_db->prepare($sql); $statement->bindParam(':descricao', $a->nome(), PDO::PARAM_STR, 128); $ret = $statement->execute(); return true; } else { return false; } }