My Project
総合概要
名前空間
クラス
ファイル
ファイル一覧
src
Shared
Foundation
ValueObject
Identifier.php
[詳解]
1
<?php
2
declare(strict_types=1);
3
4
namespace
Todo\Shared\Foundation\ValueObject
;
5
6
abstract
class
Identifier
7
{
8
abstract
protected
function
validate
(): void;
9
10
public
function
equals
(
self
$id): bool
11
{
12
if
(!$id instanceof
self
) {
13
return
false
;
14
}
15
return
$this->
id
=== $id;
16
}
17
}
Todo\Shared\Foundation\ValueObject\Identifier\equals
equals(self $id)
Definition:
Identifier.php:10
Todo\Shared\Foundation\ValueObject\Identifier\validate
validate()
Todo\Shared\Foundation\ValueObject
Definition:
Identifier.php:4
Todo\Shared\Foundation\ValueObject\Identifier
Definition:
Identifier.php:6
構築:
1.8.11