public function activeFor(Context $context)
    {
        switch ($this->status) {
            case self::ALWAYS_ACTIVE:
                return true;
            case self::INACTIVE:
                return false;
            case self::CONDITIONALLY_ACTIVE:
                return $this->executeCondition($context);
        }
        return false;
    }
public function activeFor(Context $context)
    {
        switch ($this->status) {
            case self::ALWAYS_ACTIVE:
                return true;
            case self::INACTIVE:
                return false;
            case self::CONDITIONALLY_ACTIVE:
                return $this->executeCondition($context);
        }
        return false;
    }
public function activeFor ( Context $ context ) { switch ( $ this -> status ) { case self :: ALWAYS_ACTIVE : return true ; case self :: INACTIVE : return false ; case self :: CONDITIONALLY_ACTIVE : return $ this -> executeCondition ( $ context ) ; } return false ; }
Checks whether the toggle is active for the given context.

@param Context $context

@return bool True, if one of conditions hold for the context.
Checks whether the toggle is active for the given context .