Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F956496
PhabricatorSMSImplementationTestBlackholeAdapter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
711 B
Referenced Files
None
Subscribers
None
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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 5:46 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227328
Default Alt Text
PhabricatorSMSImplementationTestBlackholeAdapter.php (711 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment