EventArgs.php
16 lines
| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\Common; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | class EventArgs |
| 6 | { |
| 7 | private static $_emptyEventArgsInstance; |
| 8 | public static function getEmptyInstance() |
| 9 | { |
| 10 | if (!self::$_emptyEventArgsInstance) { |
| 11 | self::$_emptyEventArgsInstance = new EventArgs(); |
| 12 | } |
| 13 | return self::$_emptyEventArgsInstance; |
| 14 | } |
| 15 | } |
| 16 |