curves; } /** * Add curve * * @api * @param GraphCurve $curve Curve * @return static */ public function addCurve(GraphCurve $curve) { $curve->setGraph($this); $this->addScriptFeature($curve); array_push($this->curves, $curve); return $this; } /** * Add curves * * @api * @param GraphCurve[] $curves Curves * @return static */ public function addCurves(array $curves) { foreach ($curves as $curve) { $this->addCurve($curve); } return $this; } /** * @see Control::getTagName() */ public function getTagName() { return "graph"; } /** * @see Control::getManiaScriptClass() */ public function getManiaScriptClass() { return "CMlGraph"; } }