protected function annotationToArray($annotation)
    {
        $options = array();
        foreach ((array) $annotation as $key => $value) {
            if ($value !== null) {
                $options[$key] = $value;
            }
        }

        return $options;
    }
protected function annotationToArray($annotation)
    {
        $options = array();
        foreach ((array) $annotation as $key => $value) {
            if ($value !== null) {
                $options[$key] = $value;
            }
        }

        return $options;
    }
protected function annotationToArray ( $ annotation ) { $ options = array ( ) ; foreach ( ( array ) $ annotation as $ key => $ value ) { if ( $ value !== null ) { $ options [ $ key ] = $ value ; } } return $ options ; }
Convert annotation object to array, remove empty values

@param  Object $annotation

@return array
Convert annotation object to array remove empty values