/** * Handle the event * * @param StartEvent $event */ public function __invoke(StartEvent $event) { $classModel = $event->getClassModel(); $this->addProperties($classModel); $this->addConstructor($classModel); $this->addWait($classModel); }
public function testGetClassModel() { $classModel = Mockery::mock(ClassModel::class); $event = new StartEvent($classModel); $this->assertInstanceOf(ClassModel::class, $event->getClassModel()); }