HummingBirdAnimeClient/src/Aviat/Ion/StringWrapper.php

23 lines
360 B
PHP
Raw Normal View History

2015-10-01 16:02:51 -04:00
<?php
namespace Aviat\Ion;
use Aviat\Ion\Type\StringType;
2015-10-01 16:02:51 -04:00
/**
* Trait to add convenience method for creating StringType objects
*/
2015-10-01 16:02:51 -04:00
trait StringWrapper {
/**
* Wrap the String in the Stringy class
*
* @param string $str
* @return StringType
2015-10-01 16:02:51 -04:00
*/
public function string($str)
{
return StringType::create($str);
2015-10-01 16:02:51 -04:00
}
}
// End of StringWrapper.php