~canonical-sysadmins/wordpress/openstack-objectstorage-k8s

« back to all changes in this revision

Viewing changes to vendor/guzzlehttp/guzzle/src/Event/EventInterface.php

  • Committer: Jacek Nykis
  • Date: 2015-02-11 15:35:31 UTC
  • Revision ID: jacek.nykis@canonical.com-20150211153531-hmy6zi0ov2qfkl0b
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
namespace GuzzleHttp\Event;
 
4
 
 
5
/**
 
6
 * Base event interface used when dispatching events to listeners using an
 
7
 * event emitter.
 
8
 */
 
9
interface EventInterface
 
10
{
 
11
    /**
 
12
     * Returns whether or not stopPropagation was called on the event.
 
13
     *
 
14
     * @return bool
 
15
     * @see Event::stopPropagation
 
16
     */
 
17
    public function isPropagationStopped();
 
18
 
 
19
    /**
 
20
     * Stops the propagation of the event, preventing subsequent listeners
 
21
     * registered to the same event from being invoked.
 
22
     */
 
23
    public function stopPropagation();
 
24
}