1<?php 2 3namespace Doctrine\DBAL\Event; 4 5use Doctrine\Common\EventArgs; 6 7/** 8 * Base class for schema related events. 9 */ 10class SchemaEventArgs extends EventArgs 11{ 12 /** @var bool */ 13 private $preventDefault = false; 14 15 /** 16 * @return \Doctrine\DBAL\Event\SchemaEventArgs 17 */ 18 public function preventDefault() 19 { 20 $this->preventDefault = true; 21 22 return $this; 23 } 24 25 /** 26 * @return bool 27 */ 28 public function isDefaultPrevented() 29 { 30 return $this->preventDefault; 31 } 32} 33