Correct for use Majestic namespace

This commit is contained in:
2014-06-02 21:03:50 +04:00
parent ba2985f072
commit ccd1d64f70
8 changed files with 38 additions and 38 deletions

14
FileHelper.php Normal file
View File

@ -0,0 +1,14 @@
<?php
namespace dimti\Image;
class FileHelper
{
public static function toString($object)
{
$data = array();
foreach ($object as $attribute_name => $attribute_value) {
$data[$attribute_name] = $attribute_value;
}
return json_encode($data);
}
}