Page Menu
Home
WMGMC Issues
搜索
Configure Global Search
登录
Files
F15955
Markup.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
订阅
标记用于日后
授予令牌
Size
960 B
Referenced Files
None
订阅者
None
Markup.php
View Options
<?php
/*
* This file is part of Twig.
*
* (c) Fabien Potencier
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
Twig
;
/**
* Marks a content as safe.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class
Markup
implements
\Countable
,
\JsonSerializable
,
\Stringable
{
private
$content
;
private
?
string
$charset
;
public
function
__construct
(
$content
,
$charset
)
{
$this
->
content
=
(
string
)
$content
;
$this
->
charset
=
$charset
;
}
public
function
__toString
()
{
return
$this
->
content
;
}
/**
* @return int
*/
#[\ReturnTypeWillChange]
public
function
count
()
{
return
mb_strlen
(
$this
->
content
,
$this
->
charset
);
}
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public
function
jsonSerialize
()
{
return
$this
->
content
;
}
}
File Metadata
详情
附加的
Mime Type
text/x-php
Expires
9月 9 Tue, 6:04 AM (11 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5433
默认替代文本
Markup.php (960 B)
Attached To
Mode
rMAILCOW mailcow-tracking
附加的
Detach File
Event Timeline
Log In to Comment