コード例 #1
0
 /**
  * Initialize the annotation.
  */
 public function initAnnotation($properties)
 {
     $this->_map($properties, array('format'));
     parent::initAnnotation($properties);
     if (!isset($this->format)) {
         throw new AnnotationException('FormatAnnotation requires a format property');
     }
 }
コード例 #2
0
 /**
  * Initialize the annotation.
  */
 public function initAnnotation($properties)
 {
     $this->_map($properties, array('name'));
     parent::initAnnotation($properties);
 }
コード例 #3
0
 /**
  * Initialize the annotation.
  */
 public function initAnnotation($properties)
 {
     $this->_map($properties, array('allow', 'first'));
     parent::initAnnotation($properties);
 }