23 lines
360 B
PHP
23 lines
360 B
PHP
<?php
|
|
|
|
namespace Aviat\Ion;
|
|
|
|
use Aviat\Ion\Type\StringType;
|
|
|
|
/**
|
|
* Trait to add convenience method for creating StringType objects
|
|
*/
|
|
trait StringWrapper {
|
|
|
|
/**
|
|
* Wrap the String in the Stringy class
|
|
*
|
|
* @param string $str
|
|
* @return StringType
|
|
*/
|
|
public function string($str)
|
|
{
|
|
return StringType::create($str);
|
|
}
|
|
}
|
|
// End of StringWrapper.php
|