Each time an event is fired, an instance of Event class is passed to handlers. By extending this class you can implement your own event class and expand it with whatever functionality you might need.
Inheritance: implements ArrayAccess, implements IteratorAggregate, use trait Webiny\Component\StdLib\StdLibTrait
Exemple #1
0
 public function __construct(\PhpParser\Node\Stmt $statement, Context $context)
 {
     parent::__construct();
     $this->context = $context;
     $this->statement = $statement;
 }
Exemple #2
0
 /**
  * Base constructor.
  *
  * @param AbstractUser $user
  */
 public function __construct(AbstractUser $user)
 {
     $this->user = $user;
     parent::__construct();
 }
Exemple #3
0
 public function __construct(\PhpParser\NodeAbstract $scalar, Context $context)
 {
     parent::__construct();
     $this->context = $context;
     $this->scalar = $scalar;
 }
 public function __construct(\PhpParser\NodeAbstract $expression, Context $context)
 {
     parent::__construct();
     $this->context = $context;
     $this->expression = $expression;
 }
Exemple #5
0
 public function __construct(File $file)
 {
     $this->file = $file;
     $this->storage = $file->getStorage();
     parent::__construct();
 }