1 | <?php |
||
7 | class Factory |
||
8 | { |
||
9 | const DEFAULT_NAMESPACE = '\Vsmoraes\DynamoMapper\Mappings'; |
||
10 | |||
11 | /** |
||
12 | * @param string $type |
||
13 | * @return Mapping |
||
14 | * @throws InvalidAttributeType |
||
15 | */ |
||
16 | public function make(string $type): Mapping |
||
29 | |||
30 | /** |
||
31 | * @param string $type |
||
32 | * @return string|null |
||
33 | */ |
||
34 | protected function isDefaultMapping(string $type) |
||
44 | |||
45 | /** |
||
46 | * You can extend this class and override this method |
||
47 | * to make your own custom mappings |
||
48 | * |
||
49 | * @see StringMapping for an example |
||
50 | * |
||
51 | * @param string $type |
||
52 | * @return mixed|null |
||
53 | */ |
||
54 | public function getCustomMapping($type) |
||
58 | } |
||
59 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.