[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * This is useful for testing, but otherwise your SMS ends up in a blackhole. 5 */ 6 final class PhabricatorSMSImplementationTestBlackholeAdapter 7 extends PhabricatorSMSImplementationAdapter { 8 9 public function getProviderShortName() { 10 return 'testtesttest'; 11 } 12 13 public function send() { 14 // I guess this is what a blackhole looks like 15 } 16 17 public function getSMSDataFromResult($result) { 18 return array( 19 Filesystem::readRandomCharacters(40), 20 PhabricatorSMS::STATUS_SENT, 21 ); 22 } 23 24 public function pollSMSSentStatus(PhabricatorSMS $sms) { 25 if ($sms->getID()) { 26 return PhabricatorSMS::STATUS_SENT; 27 } 28 return PhabricatorSMS::STATUS_SENT_UNCONFIRMED; 29 } 30 31 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |