     1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

    <?php
    /**
     * @class DtmfCallEvent
     *
     * https://catapult.inetwork.com/docs/callback-events/dtmf-event/
     *
     * DtmfCallEvent is triggered whenever
     * dtmf is entered, it will provide the digits entered,
     * the duration and time. All information
     * is kept within a call
     *
     *
     */
    namespace Catapult;

    final class DtmfCallEvent extends EventType {
      public function __construct() {
        $data = Ensure::Input(func_get_args(), Converter::toArray(json_decode(file_get_contents("php://input"))));

        parent::_init($data, new Call);
      }
    }