add new property

This commit is contained in:
Beu 2023-10-16 14:06:26 +02:00
parent c1dea96f27
commit c2ff687e29

View File

@ -17,6 +17,7 @@ use ManiaControl\ManiaControl;
*/ */
class StartEndStructure extends BaseTimeStructure { class StartEndStructure extends BaseTimeStructure {
private $count; private $count;
private $valid;
/** /**
* StartEndStructure constructor. * StartEndStructure constructor.
@ -28,6 +29,7 @@ class StartEndStructure extends BaseTimeStructure {
parent::__construct($maniaControl, $data); parent::__construct($maniaControl, $data);
$this->count = $this->getPlainJsonObject()->count; $this->count = $this->getPlainJsonObject()->count;
$this->valid = $this->getPlainJsonObject()->valid;
} }
/** /**
@ -39,4 +41,14 @@ class StartEndStructure extends BaseTimeStructure {
public function getCount() { public function getCount() {
return $this->count; return $this->count;
} }
/**
* Get the Valid Round Count of this Section
*
* @api
* @return int
*/
public function getValidRoundCount() {
return $this->valid;
}
} }