for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Popy\Calendar\ValueObject\DateRepresentation;
use Popy\Calendar\ValueObject\Time;
/**
* Popy\Calendar\ValueObject\DateTimeRepresentationInterface implementation.
*/
trait DateTimeTrait
{
* Time.
*
* @var Time
protected $time;
* @inheritDoc
public function getTime()
return $this->time ?: new Time();
}
public function withTime(Time $time)
$res = clone $this;
$res->time = $time;
return $res;