private function getAnnotationIndex($name)
    {
        for($i = 0; $i < count($this->annotations); $i++)
        {
            if($this->annotations[$i] instanceof $name)
            {
                return $i;
            }
        }

        return -1;
    }
private function getAnnotationIndex($name)
    {
        for($i = 0; $i < count($this->annotations); $i++)
        {
            if($this->annotations[$i] instanceof $name)
            {
                return $i;
            }
        }

        return -1;
    }
private function getAnnotationIndex ( $ name ) { for ( $ i = 0 ; $ i < count ( $ this -> annotations ) ; $ i ++ ) { if ( $ this -> annotations [ $ i ] instanceof $ name ) { return $ i ; } } return - 1 ; }
Gets the index of a annotation with the value specified, or -1 if it's not in the annotations array.

@param String $name The annotation class.
@return int The index of the annotation in the annotations array().
Gets the index of a annotation with the value specified or - 1 if it s not in the annotations array .