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
Esempio n. 1
0
 public function __construct(\PhpParser\Node\Stmt $statement, Context $context)
 {
     parent::__construct();
     $this->context = $context;
     $this->statement = $statement;
 }
Esempio n. 2
0
 /**
  * Base constructor.
  *
  * @param AbstractUser $user
  */
 public function __construct(AbstractUser $user)
 {
     $this->user = $user;
     parent::__construct();
 }
Esempio n. 3
0
 public function __construct(\PhpParser\NodeAbstract $scalar, Context $context)
 {
     parent::__construct();
     $this->context = $context;
     $this->scalar = $scalar;
 }
Esempio n. 4
0
 public function __construct(\PhpParser\NodeAbstract $expression, Context $context)
 {
     parent::__construct();
     $this->context = $context;
     $this->expression = $expression;
 }
Esempio n. 5
0
 public function __construct(File $file)
 {
     $this->file = $file;
     $this->storage = $file->getStorage();
     parent::__construct();
 }