Updated \ncc\Objects > ProjectConfiguration
This commit is contained in:
parent
7cbb50e095
commit
9ebab2135b
1 changed files with 8 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
|||
use ncc\Objects\ProjectConfiguration\Assembly;
|
||||
use ncc\Objects\ProjectConfiguration\Build;
|
||||
use ncc\Objects\ProjectConfiguration\Project;
|
||||
use ncc\Utilities\Functions;
|
||||
|
||||
class ProjectConfiguration
|
||||
{
|
||||
|
@ -32,11 +33,14 @@
|
|||
/**
|
||||
* Returns an array representation of the object
|
||||
*
|
||||
* @param bool $bytecode
|
||||
* @return array
|
||||
*/
|
||||
public function toArray(): array
|
||||
public function toArray(bool $bytecode=false): array
|
||||
{
|
||||
return [];
|
||||
return [
|
||||
($bytecode ? Functions::cbc('assembly') : 'assembly') => $this->Assembly->toArray($bytecode)
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -49,6 +53,8 @@
|
|||
{
|
||||
$ProjectConfigurationObject = new ProjectConfiguration();
|
||||
|
||||
$ProjectConfigurationObject->Assembly = Assembly::fromArray((Functions::array_bc($data, 'assembly') ?? []));
|
||||
|
||||
return $ProjectConfigurationObject;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue