Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93166261
PhabricatorMetaMTAAttachment.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, Nov 26, 17:29
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Nov 28, 17:29 (2 d)
Engine
blob
Format
Raw Data
Handle
22567060
Attached To
rPH Phabricator
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'
));
}
}
Event Timeline
Log In to Comment