Beispiel #1
0
 /**
  * An object to be applied to annotations for this series.
  * This can be used to control, for instance, the textStyle for the series.
  *
  * @param  Annotation Style of the series annotations
  * @throws InvalidConfigValue
  * @return Series
  */
 public function annotation(Annotation $annotation)
 {
     if (Utils::isAnnotation($annotation)) {
         $this->annotation = $annotation;
     } else {
         throw new InvalidConfigValue(__FUNCTION__, 'annotation');
     }
     return $this;
 }
Beispiel #2
0
 public function testAliasedIsAnnotation()
 {
     $this->assertTrue(Utils::isAnnotation(new c\Annotation()));
     $this->assertFalse(Utils::isAnnotation(new \stdClass()));
 }