Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96245921
PhabricatorSMSImplementationTestBlackholeAdapter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Dec 24, 03:06
Size
705 B
Mime Type
text/x-php
Expires
Thu, Dec 26, 03:06 (1 d, 9 h)
Engine
blob
Format
Raw Data
Handle
23128105
Attached To
rPH Phabricator
PhabricatorSMSImplementationTestBlackholeAdapter.php
View Options
<?php
/**
* This is useful for testing, but otherwise your SMS ends up in a blackhole.
*/
final
class
PhabricatorSMSImplementationTestBlackholeAdapter
extends
PhabricatorSMSImplementationAdapter
{
public
function
getProviderShortName
()
{
return
'testtesttest'
;
}
public
function
send
()
{
// I guess this is what a blackhole looks like
}
public
function
getSMSDataFromResult
(
$result
)
{
return
array
(
Filesystem
::
readRandomCharacters
(
40
),
PhabricatorSMS
::
STATUS_SENT
);
}
public
function
pollSMSSentStatus
(
PhabricatorSMS
$sms
)
{
if
(
$sms
->
getID
())
{
return
PhabricatorSMS
::
STATUS_SENT
;
}
return
PhabricatorSMS
::
STATUS_SENT_UNCONFIRMED
;
}
}
Event Timeline
Log In to Comment