Entity::getId()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 1
1
<?php namespace C4tech\RayEmitter\Contracts\Domain;
2
3
interface Entity
4
{
5
    /**
6
     * Constructor
7
     *
8
     * Instantiate an Entity using its identifier.
9
     * @param  ValueObjectInterface $identifier The identity Value Object.
10
     * @return static
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
11
     */
12
    public function __construct(ValueObject $identifier);
13
14
    /**
15
     * Get Id
16
     *
17
     * Return the identifier Value Object.
18
     * @return ValueObjectInterface
19
     */
20
    public function getId();
21
22
    /**
23
     * Magic Getter
24
     *
25
     * Expose getter methods as properties.
26
     * @param  string $property Requested "property"
27
     * @return mixed
28
     */
29
    public function __get($property);
30
}
31