You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
326 B
17 lines
326 B
<?php
|
|
|
|
namespace Model;
|
|
|
|
use BusinessClass\Question;
|
|
|
|
abstract class Factory
|
|
{
|
|
abstract public function create(array $results): array;
|
|
|
|
public static function getBuiltObjects(array $results, string $type): array
|
|
{
|
|
$type = "\\Model\\Factory" . $type;
|
|
return (new $type())->create($results);
|
|
}
|
|
}
|