php/Classes/Author.php
/**
	 * deletes this author in the mySQL database
	 *
	 * @param \PDO $pdo PDO connection object
	 * @throws \PDOException when mySQL related errors occur
	 * @throws \TypeError if $pdo is not a PDO connection object
	 */
deletes this author in the mySQL database
@param \PDO $pdo PDO connection object
@throws \PDOException when mySQL related errors occur
@throws \TypeError if $pdo is not a PDO connection object
deletes this author in the mySQL database @param \ PDO $pdo PDO connection object @throws \ PDOException when mySQL related errors occur @throws \ TypeError if $pdo is not a PDO connection object
public function delete(\PDO $pdo) : void {
		$query = "DELETE FROM author WHERE authorId = :authorId";
		$statement = $pdo->prepare($query);
		$parameters = ["author" => $this->authorId->getBytes()];
		$statement->execute($parameters);
	}
public function delete ( \ PDO $ pdo ) : void { $ query = " DELETE FROM author WHERE authorId = :authorId " ; $ statement = $ pdo -> prepare ( $ query ) ; $ parameters = [ " author " => $ this -> authorId -> getBytes ( ) ] ; $ statement -> execute ( $ parameters ) ; }
deletes this author in the mySQL database
 @param \PDO $pdo PDO connection object
 @throws \PDOException when mySQL related errors occur
 @throws \TypeError if $pdo is not a PDO connection object
deletes this author in the mySQL database @param \ PDO $pdo PDO connection object @throws \ PDOException when mySQL related errors occur @throws \ TypeError if $pdo is not a PDO connection object
// create query template // bind the member variables to the place holder in the template