src/Zicht/Bundle/FrameworkExtraBundle/Helper/AnnotationRegistry.php
public function addAnnotation($name, $value, $priority = 0)
    {
        $annotation = $this->getAnnotation($name);
        $new_annotation = array('name' => $name, 'value' => $value, 'priority' => $priority);
        if (!empty($annotation)) {
            if ($priority > $annotation['value']['priority']) {
                $this->setAnnotation($annotation['key'], $new_annotation);
            }
        } else {
            $this->annotations[]= $new_annotation;
        }
    }
public function addAnnotation($name, $value, $priority = 0)
    {
        $annotation = $this->getAnnotation($name);
        $new_annotation = array('name' => $name, 'value' => $value, 'priority' => $priority);
        if (!empty($annotation)) {
            if ($priority > $annotation['value']['priority']) {
                $this->setAnnotation($annotation['key'], $new_annotation);
            }
        } else {
            $this->annotations[]= $new_annotation;
        }
    }
public function addAnnotation ( $ name , $ value , $ priority = 0 ) { $ annotation = $ this -> getAnnotation ( $ name ) ; $ new_annotation = array ( 'name' => $ name , 'value' => $ value , 'priority' => $ priority ) ; if ( ! empty ( $ annotation ) ) { if ( $ priority > $ annotation [ 'value' ] [ 'priority' ] ) { $ this -> setAnnotation ( $ annotation [ 'key' ] , $ new_annotation ) ; } } else { $ this -> annotations [ ] = $ new_annotation ; } }
Add an annotation.

@param string $name
@param mixed $value
@param int $priority
@return void
Add an annotation .