1 | <?php |
||
19 | class Writer extends ElementAbstract implements WriterInterface |
||
20 | { |
||
21 | |||
22 | protected $fileName; |
||
23 | |||
24 | /** |
||
25 | * @var PhpClassInterface |
||
26 | */ |
||
27 | protected $phpClass; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $path; |
||
33 | |||
34 | /** |
||
35 | * @inheritdoc |
||
36 | */ |
||
37 | 6 | public function __construct($class = null) |
|
47 | |||
48 | /** |
||
49 | * @{inheritdoc} |
||
50 | */ |
||
51 | 6 | public function init() |
|
54 | |||
55 | /** |
||
56 | * @inheritdoc |
||
57 | */ |
||
58 | 2 | public function setPhpClass(PhpClassInterface $class) |
|
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | 1 | public function getPhpClass() |
|
72 | |||
73 | /** |
||
74 | * @inheritdoc |
||
75 | */ |
||
76 | 2 | public function setPath($path) |
|
86 | |||
87 | /** |
||
88 | * @inheritdoc |
||
89 | */ |
||
90 | 2 | public function getPath() |
|
94 | |||
95 | /** |
||
96 | * @inheritdoc |
||
97 | */ |
||
98 | 1 | public function setFileName($fileName) |
|
104 | |||
105 | /** |
||
106 | * @inheritdoc |
||
107 | */ |
||
108 | 2 | public function getFileName() |
|
112 | |||
113 | /** |
||
114 | * @inheritdoc |
||
115 | */ |
||
116 | 1 | public function write() |
|
131 | |||
132 | /** |
||
133 | * @inheritdoc |
||
134 | */ |
||
135 | 1 | public function toString() |
|
139 | } |
||
140 |