Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F630491
Factory.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
463 B
Referenced Files
None
Subscribers
None
Factory.php
View Options
<?php
namespace
Longman
\
TelegramBot
\
Entities
;
abstract
class
Factory
{
abstract
public
static
function
make
(
array
$data
,
string
$bot_username
)
:
Entity
;
public
static
function
resolveEntityClass
(
string
$class
,
array
$property
,
string
$bot_username
=
''
)
:
Entity
{
if
(
is_subclass_of
(
$class
,
Factory
::
class
)
)
{
return
$class
::
make
(
$property
,
$bot_username
)
;
}
return
new
$class
(
$property
,
$bot_username
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 15, 9:38 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
127224
Default Alt Text
Factory.php (463 B)
Attached To
Mode
R123 php-telegram-bot
Attached
Detach File
Event Timeline