for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace C4tech\RayEmitter\Contracts\Domain;
interface Entity
{
/**
* Constructor
*
* Instantiate an Entity using its identifier.
* @param ValueObjectInterface $identifier The identity Value Object.
* @return static
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
*/
public function __construct(ValueObject $identifier);
* Get Id
* Return the identifier Value Object.
* @return ValueObjectInterface
public function getId();
* Magic Getter
* Expose getter methods as properties.
* @param string $property Requested "property"
* @return mixed
public function __get($property);
}
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.