Cleaning
This commit is contained in:
parent
1353110c29
commit
486dd43ded
1 changed files with 9 additions and 6 deletions
|
|
@ -8,12 +8,6 @@ class WorkerWorkItem
|
|||
{
|
||||
protected array $data;
|
||||
|
||||
static public function Factory(object $object){
|
||||
$class = get_class($object);
|
||||
return (new WorkerWorkItem())
|
||||
->setKey($class, $object);
|
||||
}
|
||||
|
||||
public function __call($name, $arguments)
|
||||
{
|
||||
$method = substr(strtolower($name), 0, 3);
|
||||
|
|
@ -40,6 +34,15 @@ class WorkerWorkItem
|
|||
$this->data = $data;
|
||||
}
|
||||
|
||||
public static function Factory(object $object)
|
||||
{
|
||||
$class = get_class($object);
|
||||
|
||||
return (new WorkerWorkItem())
|
||||
->setKey($class, $object)
|
||||
;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue