Actualizacion automatica: 2024-05-01 21:28:42

This commit is contained in:
imnavajas
2024-05-01 21:28:43 +02:00
parent 3e90ebebdc
commit dce9e08cf6
4 changed files with 31 additions and 671 deletions

View File

@ -1,26 +0,0 @@
<?php
namespace App\Entities;
/**
* Base Entity Class for providing common methods to all child entities
*
* @author Gökhan Ozar
*/
abstract class GoBaseEntity extends \CodeIgniter\Entity\Entity
{
/**
* Merges the current object's property values with the passed in arguments in array format
*
* @param array $args - an associative array of properties to be set
* @return $this - returns the current object instance
*/
public function mergeAttributes(array $args = []) {
foreach ($args as $key => $value) {
if (isset($this->attributes[$key])) {
$this->attributes[$key] = $value;
}
}
return $this;
}
}