1 | <?php |
||
10 | class EntityManagerBuilder |
||
11 | { |
||
12 | /** |
||
13 | * @var EntityManager |
||
14 | */ |
||
15 | private $entityManager; |
||
16 | |||
17 | /** |
||
18 | * Constructor. |
||
19 | * |
||
20 | * @param mixed $conn |
||
21 | * @param Configuration $config |
||
22 | */ |
||
23 | 9 | public function __construct( |
|
29 | |||
30 | /** |
||
31 | * Add a type. |
||
32 | * |
||
33 | * @param string $name |
||
34 | * @param string $className |
||
35 | * @param callable[] $calls an array of - [ methodName, [ methodParams... ] ] |
||
36 | */ |
||
37 | 6 | public function addType( |
|
57 | |||
58 | /** |
||
59 | * Get the twitter type. |
||
60 | * |
||
61 | * @param string $typeName |
||
62 | * |
||
63 | * @throws DBALException |
||
64 | * |
||
65 | * @return Type |
||
66 | */ |
||
67 | 3 | private static function getType($typeName) |
|
71 | |||
72 | /** |
||
73 | * Builds the entity manager. |
||
74 | * |
||
75 | * @return EntityManager |
||
76 | */ |
||
77 | 9 | public function buildEntityManager() |
|
81 | } |
||
82 |