*/
class GenericEvent extends Event implements \ArrayAccess, \IteratorAggregate
{
- /**
- * Event subject.
- *
- * @var mixed usually object or callable
- */
protected $subject;
-
- /**
- * Array of arguments.
- *
- * @var array
- */
protected $arguments;
/**
* Encapsulate an event with $subject and $args.
*
- * @param mixed $subject The subject of the event, usually an object
+ * @param mixed $subject The subject of the event, usually an object or a callable
* @param array $arguments Arguments to store in the event
*/
public function __construct($subject = null, array $arguments = array())
*
* @return mixed Contents of array key
*
- * @throws \InvalidArgumentException If key is not found.
+ * @throws \InvalidArgumentException if key is not found
*/
public function getArgument($key)
{
*
* @return mixed
*
- * @throws \InvalidArgumentException If key does not exist in $this->args.
+ * @throws \InvalidArgumentException if key does not exist in $this->args
*/
public function offsetGet($key)
{