src/ConstTrait.php
public function getConstIdByName($prefix, $name)
    {
        $nameToIds = $this->getConstNameToIds($prefix);

        return isset($nameToIds[$name]) ? $nameToIds[$name] : null;
    }
public function getConstIdByName($prefix, $name)
    {
        $nameToIds = $this->getConstNameToIds($prefix);

        return isset($nameToIds[$name]) ? $nameToIds[$name] : null;
    }
public function getConstIdByName ( $ prefix , $ name ) { $ nameToIds = $ this -> getConstNameToIds ( $ prefix ) ; return isset ( $ nameToIds [ $ name ] ) ? $ nameToIds [ $ name ] : null ; }
Returns the constant id by name

@param string $prefix
@param string $name
@return int
Returns the constant id by name