コード例 #1
0
ファイル: UriId.php プロジェクト: assertis/util-lib
 /**
  * @inheritdoc
  */
 public function __construct($value)
 {
     $this->assertIsValidUri($value);
     parent::__construct($value);
 }
コード例 #2
0
ファイル: Id.php プロジェクト: assertis/util-lib
 /**
  * @param Id $otherId
  * @return bool
  */
 public function matches(Id $otherId)
 {
     return $this->value === $otherId->getValue();
 }