| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class EventIdSpec extends ObjectBehavior |
||
| 22 | { |
||
| 23 | |||
| 24 | private $identifier; |
||
| 25 | |||
| 26 | function let() |
||
| 27 | { |
||
| 28 | $this->identifier = (string)Uuid::uuid4(); |
||
| 29 | $this->beConstructedWith($this->identifier); |
||
| 30 | } |
||
| 31 | |||
| 32 | function it_is_initializable() |
||
|
|
|||
| 33 | { |
||
| 34 | $this->shouldHaveType(EventId::class); |
||
| 35 | } |
||
| 36 | |||
| 37 | function it_has_an_identifier() |
||
| 40 | } |
||
| 41 | |||
| 42 | function it_throws_an_exception_when_identifier_is_not_a_valid_uuid() |
||
| 47 | } |
||
| 48 | |||
| 49 | function it_generate_an_uuid_internally() |
||
| 54 | } |
||
| 55 | } |
||
| 56 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.