src/SkeVent.php
public function getProperty(string $strKey)
    {
        $mReturn = null;
        switch ($strKey) {

            // Parse weekday values
            case 'weekdays':
                $mReturn = array_keys(array_intersect_key(
                    $this->aProperties,
                    array_flip(self::WEEKDAYS)
                ), 1);
                break;

            // Calculate lead time factors
            case 'lead_time_num':
            case 'lead_time_unit':
                $mReturn = $this->getLeadTimeFactor($strKey);
                break;

            default:
                $mReturn = $this->aProperties[$strKey] ?? null;
                break;
        }
        return $mReturn;
    }
public function getProperty(string $strKey)
    {
        $mReturn = null;
        switch ($strKey) {

            // Parse weekday values
            case 'weekdays':
                $mReturn = array_keys(array_intersect_key(
                    $this->aProperties,
                    array_flip(self::WEEKDAYS)
                ), 1);
                break;

            // Calculate lead time factors
            case 'lead_time_num':
            case 'lead_time_unit':
                $mReturn = $this->getLeadTimeFactor($strKey);
                break;

            default:
                $mReturn = $this->aProperties[$strKey] ?? null;
                break;
        }
        return $mReturn;
    }
public function getProperty ( string $ strKey ) { $ mReturn = null ; switch ( $ strKey ) { // Parse weekday values case 'weekdays' : $ mReturn = array_keys ( array_intersect_key ( $ this -> aProperties , array_flip ( self :: WEEKDAYS ) ) , 1 ) ; break ; // Calculate lead time factors case 'lead_time_num' : case 'lead_time_unit' : $ mReturn = $ this -> getLeadTimeFactor ( $ strKey ) ; break ; default : $ mReturn = $ this -> aProperties [ $ strKey ] ?? null ; break ; } return $ mReturn ; }
Get an event property by key.

@param string $strKey The name of the property to get.
@return mixed
Get an event property by key .