/** * @inheritdoc */ public function execute($pushed) { $log = new GatheringLog(null, $this->receiver->getTelNo(), $pushed); $this->repository->add($log); }
/** * @param TelephoneNo $fromNo * @param Receiver $receiver * @param string $callbackUrl */ public function calling(TelephoneNo $fromNo, Receiver $receiver, $callbackUrl) { $this->twilio->account->calls->create($fromNo->getFullTelNo(), $receiver->getTelNo()->getFullTelNo(), $callbackUrl); }