protected function getAppropriateConstValue($prefixFrom, $constName)
    {
        $prefixTo  = $prefixFrom === self::PREFIX_DB ? self::PREFIX_HUMAN : self::PREFIX_DB;
        $count     = 1;
        $constName = str_replace($prefixFrom, $prefixTo, $constName, $count);

        return constant('static::'.$constName);
    }
protected function getAppropriateConstValue($prefixFrom, $constName)
    {
        $prefixTo  = $prefixFrom === self::PREFIX_DB ? self::PREFIX_HUMAN : self::PREFIX_DB;
        $count     = 1;
        $constName = str_replace($prefixFrom, $prefixTo, $constName, $count);

        return constant('static::'.$constName);
    }
protected function getAppropriateConstValue ( $ prefixFrom , $ constName ) { $ prefixTo = $ prefixFrom === self :: PREFIX_DB ? self :: PREFIX_HUMAN : self :: PREFIX_DB ; $ count = 1 ; $ constName = str_replace ( $ prefixFrom , $ prefixTo , $ constName , $ count ) ; return constant ( 'static::' . $ constName ) ; }
Returns appropriated pair value

@param string $prefixFrom Constant prefix  which determine what the value should be returns
put self::PREFIX_DB to get appropriated humanized value
or self::PREFIX_HUMAN to get appropriated database value
@param string $constName  Constant name which should be processed

@return int|string
Returns appropriated pair value