Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class LogEntryFactory implements LogEntryFactoryInterface |
||
11 | { |
||
12 | /** @var string */ |
||
13 | private $className; |
||
14 | |||
15 | public function __construct(string $className) |
||
16 | { |
||
17 | $this->className = $className; |
||
18 | } |
||
19 | |||
20 | public function createNew(): LogEntryInterface |
||
21 | { |
||
22 | return new $this->className(); |
||
23 | } |
||
24 | |||
25 | public function createNewForOwner(LogEntriesAwareInterface $owner): LogEntryInterface |
||
31 | } |
||
32 | } |
||
33 |