protected function createAnnotationObjects(array $annotations)
    {
        $objects     = array();

        //var_dump($annotations);

        foreach ($annotations as $name => $args) {
            $name = ucfirst($name);
            $class = $this->defaultNamespace . $name . 'Annotation';

            if (in_array(strtolower($name), self::getExcludeAnnotationList())) {
                continue;
            }

            if (! array_key_exists($class, $objects)) {
                if (!class_exists($class)) {
                    if ($this->strict) {
                        throw new \Exception(sprintf('Annotation Class Not Found: %s', $class));
                    } else {
                        continue;
                    }
                }

                $objects[$name] = new $class();
            }
            //var_dump($args);
            foreach ($args as $key => $value) {
                $objects[$name]->set($key, $value);
            }
        }

        return $objects;
    }
protected function createAnnotationObjects(array $annotations)
    {
        $objects     = array();

        //var_dump($annotations);

        foreach ($annotations as $name => $args) {
            $name = ucfirst($name);
            $class = $this->defaultNamespace . $name . 'Annotation';

            if (in_array(strtolower($name), self::getExcludeAnnotationList())) {
                continue;
            }

            if (! array_key_exists($class, $objects)) {
                if (!class_exists($class)) {
                    if ($this->strict) {
                        throw new \Exception(sprintf('Annotation Class Not Found: %s', $class));
                    } else {
                        continue;
                    }
                }

                $objects[$name] = new $class();
            }
            //var_dump($args);
            foreach ($args as $key => $value) {
                $objects[$name]->set($key, $value);
            }
        }

        return $objects;
    }
protected function createAnnotationObjects ( array $ annotations ) { $ objects = array ( ) ; //var_dump($annotations); foreach ( $ annotations as $ name => $ args ) { $ name = ucfirst ( $ name ) ; $ class = $ this -> defaultNamespace . $ name . 'Annotation' ; if ( in_array ( strtolower ( $ name ) , self :: getExcludeAnnotationList ( ) ) ) { continue ; } if ( ! array_key_exists ( $ class , $ objects ) ) { if ( ! class_exists ( $ class ) ) { if ( $ this -> strict ) { throw new \ Exception ( sprintf ( 'Annotation Class Not Found: %s' , $ class ) ) ; } else { continue ; } } $ objects [ $ name ] = new $ class ( ) ; } //var_dump($args); foreach ( $ args as $ key => $ value ) { $ objects [ $ name ] -> set ( $ key , $ value ) ; } } return $ objects ; }
Create annotations object

@param  array  $annotations annotated elements
@return array               array of annoatated objects
Create annotations object