We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6759043 + 1e537e8 commit 0a9b953Copy full SHA for 0a9b953
src/Transformer/Transformer.php
@@ -21,6 +21,8 @@ abstract class Transformer implements StrategyInterface
21
/** @var Mapping[] */
22
protected $mappings;
23
/** @var string */
24
+ protected $attributesCase;
25
+ /** @var string */
26
protected $firstUrl;
27
28
protected $lastUrl;
@@ -35,10 +37,12 @@ abstract class Transformer implements StrategyInterface
35
37
36
38
/**
39
* @param Mapper $mapper
40
+ * @param string $attributesCase
41
*/
- public function __construct(Mapper $mapper)
42
+ public function __construct(Mapper $mapper, string $attributesCase = 'snake_case')
43
{
44
$this->mappings = $mapper->getClassMap();
45
+ $this->attributesCase = $attributesCase;
46
}
47
48
0 commit comments