Skip to content

Instantly share code, notes, and snippets.

@msfidelis
Created April 23, 2017 15:07
Show Gist options
  • Save msfidelis/6e0f2876ed98c46027540c98415a31f6 to your computer and use it in GitHub Desktop.
Save msfidelis/6e0f2876ed98c46027540c98415a31f6 to your computer and use it in GitHub Desktop.
<?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