<?phprequire_once 'CartListenerInterface.php';class LoggingListener implements CartListenerInterface{ public function update(Cart $cart) { echo '<pre>'; print_r($cart->getItems()); echo '</pre>'; }}