logger = $logger ?: new NullLogger(); } }