|
@@ -38,23 +38,27 @@ class TriggerEvent
|
|
private $io;
|
|
private $io;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Returns the event's name.
|
|
|
|
|
|
+ * Constructor.
|
|
*
|
|
*
|
|
- * @return string The event name
|
|
|
|
|
|
+ * @param string $name The event name
|
|
|
|
+ * @param Composer $composer The composer objet
|
|
|
|
+ * @param IOInterface $io The IOInterface object
|
|
*/
|
|
*/
|
|
- public function getName()
|
|
|
|
|
|
+ public function __construct($name, Composer $composer, IOInterface $io)
|
|
{
|
|
{
|
|
- return $this->name;
|
|
|
|
|
|
+ $this->name = $name;
|
|
|
|
+ $this->composer = $composer;
|
|
|
|
+ $this->io = $io;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Stores the event's name.
|
|
|
|
|
|
+ * Returns the event's name.
|
|
*
|
|
*
|
|
- * @param string $name The event name
|
|
|
|
|
|
+ * @return string The event name
|
|
*/
|
|
*/
|
|
- public function setName($name)
|
|
|
|
|
|
+ public function getName()
|
|
{
|
|
{
|
|
- $this->name = $name;
|
|
|
|
|
|
+ return $this->name;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -67,16 +71,6 @@ class TriggerEvent
|
|
return $this->composer;
|
|
return $this->composer;
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * Stores the composer instance.
|
|
|
|
- *
|
|
|
|
- * @param Composer $composer
|
|
|
|
- */
|
|
|
|
- public function setComposer(Composer $composer)
|
|
|
|
- {
|
|
|
|
- $this->composer = $composer;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Returns the IO instance.
|
|
* Returns the IO instance.
|
|
*
|
|
*
|
|
@@ -86,14 +80,4 @@ class TriggerEvent
|
|
{
|
|
{
|
|
return $this->io;
|
|
return $this->io;
|
|
}
|
|
}
|
|
-
|
|
|
|
- /**
|
|
|
|
- * Stores the IO instance.
|
|
|
|
- *
|
|
|
|
- * @param IOInterface $io
|
|
|
|
- */
|
|
|
|
- public function setIO(IOInterface $io)
|
|
|
|
- {
|
|
|
|
- $this->io = $io;
|
|
|
|
- }
|
|
|
|
}
|
|
}
|