| 1 | <?php |
||
| 24 | class Identity |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | * |
||
| 29 | * @Assert\NotNull(message="Type cannot be null.") |
||
| 30 | * @Assert\Type(type="string") |
||
| 31 | */ |
||
| 32 | private $type; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var string |
||
| 36 | * |
||
| 37 | * @Assert\NotNull(message="Endpoint cannot be null.") |
||
| 38 | * @Assert\Type(type="string") |
||
| 39 | */ |
||
| 40 | private $endpoint; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return string|null |
||
| 44 | */ |
||
| 45 | public function getType(): ?string |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param string $type |
||
| 52 | * |
||
| 53 | * @return $this |
||
| 54 | */ |
||
| 55 | public function setType(string $type): self |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return string|null |
||
| 64 | */ |
||
| 65 | public function getEndpoint(): ?string |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @param string $endpoint |
||
| 72 | * |
||
| 73 | * @return $this |
||
| 74 | */ |
||
| 75 | public function setEndpoint(string $endpoint): self |
||
| 81 | } |
||
| 82 |