From c2ff687e2971159940713f05a92ae869f81a6b3d Mon Sep 17 00:00:00 2001 From: Beu Date: Mon, 16 Oct 2023 14:06:26 +0200 Subject: [PATCH] add new property --- .../Structures/ManiaPlanet/StartEndStructure.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/Callbacks/Structures/ManiaPlanet/StartEndStructure.php b/core/Callbacks/Structures/ManiaPlanet/StartEndStructure.php index 88da64dc..cca3edbf 100644 --- a/core/Callbacks/Structures/ManiaPlanet/StartEndStructure.php +++ b/core/Callbacks/Structures/ManiaPlanet/StartEndStructure.php @@ -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; + } } \ No newline at end of file