Created
June 1, 2016 11:25
-
-
Save jinkrish/246a4c8783d52b0de46e20a55f84c993 to your computer and use it in GitHub Desktop.
This file contains 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 Question { | |
private $author; | |
private $question; | |
public function __construct($question) { | |
$this->question = $question; | |
} | |
public function setAuthor(Author $author) { | |
$this->author = $author; | |
} | |
public function getAuthor() { | |
return $this->author; | |
} | |
public function getQuestion() { | |
return $this->question; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment