示例#1
0
 /**
  * @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();
 }