Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F8321445
WithEncoding.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
529 B
Referenced Files
None
Subscribers
None
WithEncoding.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Keruald\OmniTools\Strings\Multibyte
;
use
InvalidArgumentException
;
trait
WithEncoding
{
/**
* @var string
*/
private
$encoding
;
public
function
getEncoding
()
:
string
{
return
$this
->
encoding
;
}
public
function
setEncoding
(
string
$encoding
)
:
self
{
if
(!
StringUtilities
::
isSupportedEncoding
(
$encoding
))
{
throw
new
InvalidArgumentException
;
}
$this
->
encoding
=
$encoding
;
return
$this
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 16:43 (8 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2541996
Default Alt Text
WithEncoding.php (529 B)
Attached To
Mode
rKERUALD Keruald libraries development repository
Attached
Detach File
Event Timeline
Log In to Comment