コード例 #1
0
ファイル: Time.php プロジェクト: nark3d/PhalueObjects
 /**
  * @param Hour $hour
  * @param Minute $minute
  * @param Second $second
  */
 public function __construct(Hour $hour, Minute $minute, Second $second)
 {
     $this->hour = $hour;
     $this->minute = $minute;
     $this->second = $second;
     $this->timestamp = $hour->getSeconds()->add($minute->getSeconds())->add($second);
     $this->native = self::getNowDateTime()->setTime($hour->getValue(), $minute->getValue(), $minute->getValue());
     parent::__construct(func_get_args());
 }