Created
December 16, 2015 16:21
-
-
Save lowenthal-jason/4885a5dcb5ef11597864 to your computer and use it in GitHub Desktop.
Example domain class written in PHP for Multilingual Programming post on Simple Programmer
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 | |
namespace Starfleet\Entity; | |
class StarfleetCadet | |
{ | |
private $klingonSpeaker; | |
public function isKlingonSpeaker() | |
{ | |
return $this->klingonSpeaker; | |
} | |
public function setKlingonSpeaker($klingonSpeaker) | |
{ | |
$this->klingonSpeaker = $klingonSpeaker; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment