src/Mvc/Listener/Limit/LimitStrategy.php
public function check(MvcEvent $event)
    {
        foreach ($this->limits as $limit) {
            if ($this->storage->check($this->remoteAddress->getIpAddress(), $limit)) {
                foreach ($limit->getActions() as $action) {
                    $action($event);
                }
            }
        }
    }
public function check(MvcEvent $event)
    {
        foreach ($this->limits as $limit) {
            if ($this->storage->check($this->remoteAddress->getIpAddress(), $limit)) {
                foreach ($limit->getActions() as $action) {
                    $action($event);
                }
            }
        }
    }
public function check ( MvcEvent $ event ) { foreach ( $ this -> limits as $ limit ) { if ( $ this -> storage -> check ( $ this -> remoteAddress -> getIpAddress ( ) , $ limit ) ) { foreach ( $ limit -> getActions ( ) as $ action ) { $ action ( $ event ) ; } } } }
Test limits and take actions if they have been exceeded

@param MvcEvent $event
Test limits and take actions if they have been exceeded