예제 #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();
 }