HummingBirdAnimeClient/src/Aviat/Ion/ArrayWrapper.php

24 lines
370 B
PHP
Raw Normal View History

<?php
namespace Aviat\Ion;
use Aviat\Ion\Type\ArrayType;
2015-10-14 09:20:52 -04:00
/**
* Wrapper to shortcut creating ArrayType objects
*/
trait ArrayWrapper {
/**
* Convenience method for wrapping an array
* with the array type class
*
* @param array $arr
* @return ArrayType
*/
public function arr(array $arr)
{
return new ArrayType($arr);
}
}
// End of ArrayWrapper.php