Created
August 6, 2015 12:06
-
-
Save Akii/ec08751f2d8e8059d8f6 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
case class ValueObject(property: SomeType) | |
class ValueObject { | |
/** @var SomeType */ | |
protected $property; | |
/** @param SomeType $property | |
public function __construct(SomeType $property) { | |
$this->property = $property; | |
} | |
/** @return SomeType */ | |
public function getProperty() { return $this->property; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment