. */ namespace Doctrine\DBAL\Event; use Doctrine\Common\EventArgs; /** * Base class for schema related events. * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.com * @since 2.2 * @author Jan Sorgalla */ class SchemaEventArgs extends EventArgs { /** * @var boolean */ private $_preventDefault = false; /** * @return \Doctrine\DBAL\Event\SchemaEventArgs */ public function preventDefault() { $this->_preventDefault = true; return $this; } /** * @return boolean */ public function isDefaultPrevented() { return $this->_preventDefault; } }