コード例 #1
0
ファイル: Date.php プロジェクト: nark3d/PhalueObjects
 /**
  * @return static
  */
 public static function now()
 {
     return new static(Year::now(), Month::now(), Day::now());
 }
コード例 #2
0
ファイル: YearTest.php プロジェクト: nark3d/PhalueObjects
 public function testNow()
 {
     $this->assertSame((int) date('Y'), Year::now()->getValue());
     $this->assertNotSame(1999, Year::now()->getValue());
 }