-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
32 lines (24 loc) · 862 Bytes
/
index.php
File metadata and controls
32 lines (24 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
require __DIR__ . '/../bootstrap.php';
require __DIR__ . '/Mapper.php';
$mapper = new Mapper;
$entityClass = 'Model\Entity\ClientCompany';
$table = 'client_company';
$column = 'company_name';
$property = 'companyName';
$repositoryClass = 'Model\ClientCompanyRepository';
superscribe('getTable()');
write($entityClass . ' => ' . $mapper->getTable($entityClass));
separate();
superscribe('getEntityClass()');
write($table . ' => ' . $mapper->getEntityClass($table));
separate();
superscribe('getColumn()');
write($property . ' => ' . $mapper->getColumn($entityClass, $property));
separate();
superscribe('getEntityField()');
write($column . ' => ' . $mapper->getEntityField($table, $column));
separate();
superscribe('getTableByRepositoryClass()');
write($repositoryClass . ' => ' . $mapper->getTableByRepositoryClass($repositoryClass));
separate();