[TASK] Add object utility

This commit is contained in:
Philipp Dieter 2021-06-13 19:35:46 +02:00
parent f00f35ba45
commit 6098131851

View File

@ -0,0 +1,30 @@
<?php
namespace Cjel\TemplatesAide\Utility;
/***
*
* This file is part of the "Templates Aide" Extension for TYPO3 CMS.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* (c) 2021 Philipp Dieter <philipp.dieter@attic-media.net>
*
***/
/**
*
*/
class ObjectUtility
{
/**
* fills object from array
*
* @return void
*/
public static function fromArray(&$object, $data) {
foreach ($data as $property => $value) {
$object->_setProperty($property, $value);
}
}
}