src/Event/EventHandlerCollection.php
public function execute(string $event)
    {
        foreach ($this->members as $member) {
            if ($member->getEvent() === $event) {
                $member->execute();
            }
        }
    }
public function execute(string $event)
    {
        foreach ($this->members as $member) {
            if ($member->getEvent() === $event) {
                $member->execute();
            }
        }
    }
public function execute ( string $ event ) { foreach ( $ this -> members as $ member ) { if ( $ member -> getEvent ( ) === $ event ) { $ member -> execute ( ) ; } } }
Loop through and execute each member of the collection
@param string $event
Loop through and execute each member of the collection