File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1818 */
1919final class Project extends Node
2020{
21+ private readonly string $ directory ;
22+
2123 public function __construct (string $ directory )
2224 {
2325 $ dom = new DOMDocument ;
@@ -30,12 +32,12 @@ public function __construct(string $directory)
3032 )->item (0 ),
3133 );
3234
33- $ this ->setProjectSourceDirectory ( $ directory) ;
35+ $ this ->directory = $ directory ;
3436 }
3537
3638 public function projectSourceDirectory (): string
3739 {
38- return $ this ->contextNode ()-> getAttribute ( ' source ' ) ;
40+ return $ this ->directory ;
3941 }
4042
4143 public function buildInformation (): BuildInformation
@@ -82,11 +84,8 @@ public function tests(): Tests
8284
8385 public function asDom (): DOMDocument
8486 {
85- return $ this ->dom ();
86- }
87+ $ this ->contextNode ()->setAttribute ('source ' , $ this ->directory );
8788
88- private function setProjectSourceDirectory (string $ name ): void
89- {
90- $ this ->contextNode ()->setAttribute ('source ' , $ name );
89+ return $ this ->dom ();
9190 }
9291}
You can’t perform that action at this time.
0 commit comments