Total Complexity | 6 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class Writable |
||
17 | { |
||
18 | /** @var string */ |
||
19 | private $template; |
||
20 | |||
21 | /** @var string */ |
||
22 | private $namespace; |
||
23 | |||
24 | /** @var string */ |
||
25 | private $filename; |
||
26 | |||
27 | /** @var bool */ |
||
28 | private $clobber; |
||
29 | |||
30 | private function __construct( |
||
31 | string $template, |
||
32 | string $namespace, |
||
33 | string $filename, |
||
34 | bool $clobber = true |
||
35 | ) { |
||
36 | $this->template = $template; |
||
37 | $this->namespace = $namespace; |
||
38 | $this->filename = $filename; |
||
39 | $this->clobber = $clobber; |
||
40 | } |
||
41 | |||
42 | public function getTemplate(): string |
||
43 | { |
||
44 | return $this->template; |
||
45 | } |
||
46 | |||
47 | public function getNamespace(): string |
||
48 | { |
||
49 | return $this->namespace; |
||
50 | } |
||
51 | |||
52 | public function getFilename(): string |
||
53 | { |
||
54 | return $this->filename; |
||
55 | } |
||
56 | |||
57 | public function shouldClobber(): bool |
||
58 | { |
||
59 | return $this->clobber; |
||
60 | } |
||
61 | |||
62 | public static function create( |
||
69 | } |
||
70 | } |
||
71 |