/** * Detach a listener from ourselves * * so that we no longer notify them when our state changes * * @param Falcraft\Patterns\Resource\ObserverInterface $observer * */ public function detachListener(PatternsResource\ObserverInterface $observer) { if ($this->observers->in($observer)) { $this->observers->remove($observer); } }
/** * Is an extension allowed? * * @return boolean * */ public function isExtension($extension) { return $this->extensions->in($extension); }
/** * Detach from the publisher * */ public function detach(PatternsResource\PublisherInterface $publisher) { if ($this->subject->in($publisher)) { $this->subject->remove($publisher); } }