@@ -41,30 +41,36 @@ class Information implements JsonSerializable
4141 */
4242 private $ debuggerEnabled ;
4343
44+ /**
45+ * @var array
46+ */
47+ private $ systemInfo ;
48+
4449 /**
4550 * @param BuildPath $buildPath
4651 * @param $environment
4752 * @param $debuggerEnabled
4853 * @return Information
4954 */
50- public static function buildFrom (BuildPath $ buildPath , $ environment , $ debuggerEnabled )
55+ public static function buildFrom (BuildPath $ buildPath , $ environment , $ debuggerEnabled, array $ systemInfo )
5156 {
5257 Assert::stringNotEmpty ($ environment , 'Environment must have a non empty string value ' );
5358 Assert::boolean ($ debuggerEnabled , 'Debugger enabled must have a boolean value ' );
5459
55- return new self ($ buildPath , $ environment , $ debuggerEnabled );
60+ return new self ($ buildPath , $ environment , $ debuggerEnabled, $ systemInfo );
5661 }
5762
5863 /**
5964 * @param BuildPath $buildPath
6065 * @param string $environment
6166 * @param bool $debuggerEnabled
6267 */
63- public function __construct (BuildPath $ buildPath , $ environment , $ debuggerEnabled )
68+ public function __construct (BuildPath $ buildPath , $ environment , $ debuggerEnabled, array $ systemInfo )
6469 {
6570 $ this ->buildPath = $ buildPath ;
6671 $ this ->environment = $ environment ;
6772 $ this ->debuggerEnabled = $ debuggerEnabled ;
73+ $ this ->systemInfo = $ systemInfo ;
6874 }
6975
7076 public function jsonSerialize ()
@@ -73,6 +79,7 @@ public function jsonSerialize()
7379 'build ' => $ this ->buildPath ->getPath (),
7480 'env ' => $ this ->environment ,
7581 'debug ' => $ this ->debuggerEnabled ,
82+ 'system ' => $ this ->systemInfo ,
7683 ];
7784
7885 if ($ this ->buildPath ->hasRevision ()) {
0 commit comments