src/Factory/DataDriver.php 1 location
|
@@ 49-54 (lines=6) @@
|
46 |
|
} |
47 |
|
foreach ($this->parsed as $part) { |
48 |
|
if ($part instanceof Class_) { |
49 |
|
foreach ($this->getGetters() as $getter) { |
50 |
|
if ($this->reflector->hasMethod($getter['method'])) { |
51 |
|
continue; |
52 |
|
} |
53 |
|
$part->stmts[] = $this->createGetterMethod($getter); |
54 |
|
} |
55 |
|
foreach ($this->getSetters() as $setter) { |
56 |
|
if ($this->reflector->hasMethod($setter['method'])) { |
57 |
|
continue; |
src/Factory/ValueDriver.php 1 location
|
@@ 45-50 (lines=6) @@
|
42 |
|
} |
43 |
|
foreach ($this->parsed as $part) { |
44 |
|
if ($part instanceof Class_) { |
45 |
|
foreach ($this->getGetters() as $getter) { |
46 |
|
if ($this->reflector->hasMethod($getter['method'])) { |
47 |
|
continue; |
48 |
|
} |
49 |
|
$part->stmts[] = $this->createGetterMethod($getter); |
50 |
|
} |
51 |
|
if (!$this->reflector->hasMethod('__toString')) { |
52 |
|
$part->stmts[] = $this->createToString($this->getGetters()); |
53 |
|
} |