Created
April 23, 2017 15:07
-
-
Save msfidelis/6e0f2876ed98c46027540c98415a31f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Book { | |
/** | |
* @var int | |
*/ | |
protected $id; | |
/** | |
* @var string | |
*/ | |
protected $name; | |
/** | |
* @var string | |
*/ | |
protected $author; | |
public function getId(){ | |
return $this->id; | |
} | |
public function getName(){ | |
return $this->name; | |
} | |
public function getAuthor() { | |
return $this->author; | |
} | |
public function setName($name){ | |
$this->name = $name; | |
return $this; | |
} | |
public function setAuthor($author) { | |
$this->author = $author; | |
return $this; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment