src/Charcoal/Property/ImageProperty.php
public function applyEffects($event = null)
    {
        if ($event !== null) {
            if (!in_array($event, $this->acceptedEffectsEvents())) {
                if (!is_string($event)) {
                    $event = (is_object($event) ? get_class($event) : gettype($event));
                }
                throw new OutOfBoundsException(sprintf(
                    'Unsupported image property event "%s" provided',
                    $event
                ));
            }

            return $this->applyEffects === $event;
        }

        return $this->applyEffects;
    }
public function applyEffects($event = null)
    {
        if ($event !== null) {
            if (!in_array($event, $this->acceptedEffectsEvents())) {
                if (!is_string($event)) {
                    $event = (is_object($event) ? get_class($event) : gettype($event));
                }
                throw new OutOfBoundsException(sprintf(
                    'Unsupported image property event "%s" provided',
                    $event
                ));
            }

            return $this->applyEffects === $event;
        }

        return $this->applyEffects;
    }
public function applyEffects ( $ event = null ) { if ( $ event !== null ) { if ( ! in_array ( $ event , $ this -> acceptedEffectsEvents ( ) ) ) { if ( ! is_string ( $ event ) ) { $ event = ( is_object ( $ event ) ? get_class ( $ event ) : gettype ( $ event ) ) ; } throw new OutOfBoundsException ( sprintf ( 'Unsupported image property event "%s" provided' , $ event ) ) ; } return $ this -> applyEffects === $ event ; } return $ this -> applyEffects ; }
Determine if effects should be applied.

@param  string|boolean $event A specific event to check or a global flag to set.
@throws OutOfBoundsException If the effects event does not exist.
@return mixed If an $event is provided, returns TRUE or FALSE if the property applies
effects for the given event. Otherwise, returns the property's condition on effects.
Determine if effects should be applied .