public function __construct($handler = null) { $this->handler = $handler ?: self::class . '::defaultHandler'; }