Skip to content

Instantly share code, notes, and snippets.

@Akii
Created August 6, 2015 12:06
Show Gist options
  • Save Akii/ec08751f2d8e8059d8f6 to your computer and use it in GitHub Desktop.
Save Akii/ec08751f2d8e8059d8f6 to your computer and use it in GitHub Desktop.
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