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.
Наследование: implements ArrayAccess, implements IteratorAggregate, use trait Webiny\Component\StdLib\StdLibTrait
Пример #1
0
 public function __construct(\PhpParser\Node\Stmt $statement, Context $context)
 {
     parent::__construct();
     $this->context = $context;
     $this->statement = $statement;
 }
Пример #2
0
 /**
  * Base constructor.
  *
  * @param AbstractUser $user
  */
 public function __construct(AbstractUser $user)
 {
     $this->user = $user;
     parent::__construct();
 }
Пример #3
0
 public function __construct(\PhpParser\NodeAbstract $scalar, Context $context)
 {
     parent::__construct();
     $this->context = $context;
     $this->scalar = $scalar;
 }
Пример #4
0
 public function __construct(\PhpParser\NodeAbstract $expression, Context $context)
 {
     parent::__construct();
     $this->context = $context;
     $this->expression = $expression;
 }
Пример #5
0
 public function __construct(File $file)
 {
     $this->file = $file;
     $this->storage = $file->getStorage();
     parent::__construct();
 }