From 26f21b3fc3039fb193e47719409fdff00c2983a4 Mon Sep 17 00:00:00 2001 From: "Yawman, Chris" Date: Thu, 20 Mar 2014 19:02:15 -0400 Subject: [PATCH] Create entity setters/getters --- 2014-03-20/src/Book.php | 78 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 76 insertions(+), 2 deletions(-) diff --git a/2014-03-20/src/Book.php b/2014-03-20/src/Book.php index 63e2e76..fddbacf 100644 --- a/2014-03-20/src/Book.php +++ b/2014-03-20/src/Book.php @@ -1,4 +1,78 @@ id; + } + + public function setId($id) { + $this->id = $id; + } + + public function getTitle() { + return $this->title; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getAuthor() { + return $this->author; + } + + public function setAuthor($author) { + $this->author = $author; + } + + public function getPublishDate() { + return $this->publishDate; + } + + public function setPublishDate($publishDate) { + $this->publishDate = $publishDate; + } + + public function getDescription() { + return $this->description; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getGenre() { + return $this->genre; + } + + public function setGenre($genre) { + $this->genre = $genre; + } + + public function getPrice() { + return $this->price; + } + + public function setPrice($price) { + $this->price = $price; + } + + public function getUrl() { + return $this->url; + } + + public function setUrl($url) { + $this->url = $url; + } + }