1 | <?php |
||
22 | class Basic implements ProviderInterface, \IteratorAggregate, \Countable |
||
23 | { |
||
24 | /** |
||
25 | * @var EventInterface[] |
||
26 | */ |
||
27 | protected $events = array(); |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function getEvents(\DateTime $begin, \DateTime $end, array $options = array()) |
||
48 | |||
49 | /** |
||
50 | * Adds an event to the provider. |
||
51 | * |
||
52 | * @param EventInterface $event |
||
53 | */ |
||
54 | public function add(EventInterface $event) |
||
58 | |||
59 | /** |
||
60 | * Returns all events. |
||
61 | * |
||
62 | * @return EventInterface[] |
||
63 | */ |
||
64 | public function all() |
||
68 | |||
69 | /** |
||
70 | * Retrieve an external iterator. |
||
71 | * |
||
72 | * @return \Traversable |
||
73 | */ |
||
74 | public function getIterator() |
||
78 | |||
79 | /** |
||
80 | * The return value is cast to an integer. |
||
81 | * |
||
82 | * @return int |
||
83 | */ |
||
84 | public function count() |
||
88 | } |
||
89 |