Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F957769
PhabricatorMetaMTAAttachment.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorMetaMTAAttachment.php
View Options
<?php
final
class
PhabricatorMetaMTAAttachment
extends
Phobject
{
protected
$data
;
protected
$filename
;
protected
$mimetype
;
public
function
__construct
(
$data
,
$filename
,
$mimetype
)
{
$this
->
setData
(
$data
);
$this
->
setFilename
(
$filename
);
$this
->
setMimeType
(
$mimetype
);
}
public
function
getData
()
{
return
$this
->
data
;
}
public
function
setData
(
$data
)
{
$this
->
data
=
$data
;
return
$this
;
}
public
function
getFilename
()
{
return
$this
->
filename
;
}
public
function
setFilename
(
$filename
)
{
$this
->
filename
=
$filename
;
return
$this
;
}
public
function
getMimeType
()
{
return
$this
->
mimetype
;
}
public
function
setMimeType
(
$mimetype
)
{
$this
->
mimetype
=
$mimetype
;
return
$this
;
}
public
function
toDictionary
()
{
return
array
(
'filename'
=>
$this
->
getFilename
(),
'mimetype'
=>
$this
->
getMimeType
(),
'data'
=>
$this
->
getData
(),
);
}
public
static
function
newFromDictionary
(
array
$dict
)
{
return
new
PhabricatorMetaMTAAttachment
(
idx
(
$dict
,
'data'
),
idx
(
$dict
,
'filename'
),
idx
(
$dict
,
'mimetype'
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 7:46 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227388
Default Alt Text
PhabricatorMetaMTAAttachment.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment