public getType ( ) : |
||
return |
public function getType()
{
if (is_null($this->type)) {
throw new \Exception('Chart type has not been set.');
}
return $this->type;
}
/** * @expectedException \Exception * @expectedExceptionMessage Chart type has not been set. */ public function testTypeException() { $object = new PlotArea(); $object->getType(); }