public function getPropertyNamesByTag($className, $tag)
    {
        $className = $this->prepareClassReflectionForUsage($className);
        if (!isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES])) {
            return [];
        }

        $propertyNames = [];
        foreach ($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES] as $propertyName => $propertyData) {
            if (isset($propertyData[self::DATA_PROPERTY_TAGS_VALUES][$tag])) {
                $propertyNames[$propertyName] = true;
            }
        }

        return array_keys($propertyNames);
    }
public function getPropertyNamesByTag($className, $tag)
    {
        $className = $this->prepareClassReflectionForUsage($className);
        if (!isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES])) {
            return [];
        }

        $propertyNames = [];
        foreach ($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES] as $propertyName => $propertyData) {
            if (isset($propertyData[self::DATA_PROPERTY_TAGS_VALUES][$tag])) {
                $propertyNames[$propertyName] = true;
            }
        }

        return array_keys($propertyNames);
    }
public function getPropertyNamesByTag ( $ className , $ tag ) { $ className = $ this -> prepareClassReflectionForUsage ( $ className ) ; if ( ! isset ( $ this -> classReflectionData [ $ className ] [ self :: DATA_CLASS_PROPERTIES ] ) ) { return [ ] ; } $ propertyNames = [ ] ; foreach ( $ this -> classReflectionData [ $ className ] [ self :: DATA_CLASS_PROPERTIES ] as $ propertyName => $ propertyData ) { if ( isset ( $ propertyData [ self :: DATA_PROPERTY_TAGS_VALUES ] [ $ tag ] ) ) { $ propertyNames [ $ propertyName ] = true ; } } return array_keys ( $ propertyNames ) ; }
Searches for and returns all names of class properties which are tagged by the specified tag.
If no properties were found, an empty array is returned.

@param string $className Name of the class containing the properties
@param string $tag Tag to search for
@return array An array of property names tagged by the tag
@api
Searches for and returns all names of class properties which are tagged by the specified tag . If no properties were found an empty array is returned .