/** * Sets the scale control style * * @param type $scaleControlStyle */ public function setScaleControlStyle($scaleControlStyle) { if (in_array($scaleControlStyle, ScaleControlStyle::getScaleControlStyles())) { $this->scaleControlStyle = $scaleControlStyle; } else { throw new \InvalidArgumentException(sprintf('The scale control style of a scale control can only be : %s.', implode(', ', ScaleControlStyle::getScaleControlStyles()))); } }
/** * Checks the scale styles getter */ public function testScaleControlStyles() { $this->assertEquals(ScaleControlStyle::getScaleControlStyles(), array(ScaleControlStyle::DEFAULT_)); }