mirror of
https://github.com/nextcloud/passman.git
synced 2024-11-11 18:16:54 +08:00
20 lines
No EOL
454 B
PHP
20 lines
No EOL
454 B
PHP
<?php
|
|
/**
|
|
* Nextcloud - passman
|
|
*
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
* later. See the COPYING file.
|
|
*
|
|
* @author Sander Brand <brantje@gmail.com>
|
|
* @copyright Sander Brand 2016
|
|
*/
|
|
namespace OCA\Passman\Db;
|
|
trait EntityJSONSerializer {
|
|
public function serializeFields($properties) {
|
|
$result = [];
|
|
foreach($properties as $property) {
|
|
$result[$property] = $this->$property;
|
|
}
|
|
return $result;
|
|
}
|
|
} |