original_string: public function delete(): bool
      {
          if (! $this->exists())
          {
              return false;
          }
  
          $sql = 'DELETE FROM ' . $this->getTableName() . ' WHERE ' . $this->getKeyName() . ' = :key';
          $query = DB::getConnection()->prepare($sql);
  
          return $query->execute(['key' => $this->getKey()]);
      }
code: public function delete(): bool
      {
          if (! $this->exists())
          {
              return false;
          }
  
          $sql = 'DELETE FROM ' . $this->getTableName() . ' WHERE ' . $this->getKeyName() . ' = :key';
          $query = DB::getConnection()->prepare($sql);
  
          return $query->execute(['key' => $this->getKey()]);
      }
code_tokens: public function delete ( ) : bool { if ( ! $ this -> exists ( ) ) { return false ; } $ sql = 'DELETE FROM ' . $ this -> getTableName ( ) . ' WHERE ' . $ this -> getKeyName ( ) . ' = :key' ; $ query = DB :: getConnection ( ) -> prepare ( $ sql ) ; return $ query -> execute ( [ 'key' => $ this -> getKey ( ) ] ) ; }
docstring: Delete a model from the DB
  
  @return bool
docstring_tokens: Delete a model from the DB