for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace smtech\CanvasICSSync\SyncIntoCanvas\Filter;
use smtech\CanvasICSSync\SyncIntoCanvas\Event;
abstract class Filter
{
/**
* Whether or not this filter is enabled
* @var boolean
*/
protected $enabled = false;
* Set whether or not this filter is enabled
*
* @param boolean $enabled
public function setEnabled($enabled)
$this->enabled = (boolean) $enabled;
}
* Is this filter enabled?
* @return boolean
public function isEnabled()
return $this->enabled;
* Does this event pass this filter?
* @param Event $event
* @return boolean `true` if the event passes the filter and should be
* included, `false` otherwise
abstract public function filter(Event $event);
__construct()