add new property
This commit is contained in:
parent
c1dea96f27
commit
c2ff687e29
@ -17,6 +17,7 @@ use ManiaControl\ManiaControl;
|
||||
*/
|
||||
class StartEndStructure extends BaseTimeStructure {
|
||||
private $count;
|
||||
private $valid;
|
||||
|
||||
/**
|
||||
* StartEndStructure constructor.
|
||||
@ -28,6 +29,7 @@ class StartEndStructure extends BaseTimeStructure {
|
||||
parent::__construct($maniaControl, $data);
|
||||
|
||||
$this->count = $this->getPlainJsonObject()->count;
|
||||
$this->valid = $this->getPlainJsonObject()->valid;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -39,4 +41,14 @@ class StartEndStructure extends BaseTimeStructure {
|
||||
public function getCount() {
|
||||
return $this->count;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Valid Round Count of this Section
|
||||
*
|
||||
* @api
|
||||
* @return int
|
||||
*/
|
||||
public function getValidRoundCount() {
|
||||
return $this->valid;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user