| 1 | <?php |
||
| 7 | class EntityGuesser extends AbstractGuesser implements GuesserInterface |
||
| 8 | { |
||
| 9 | public function __construct(Bag $bag) |
||
| 13 | |||
| 14 | public function supports(array $mapping) |
||
| 23 | |||
| 24 | public function transform($str, array $mapping) |
||
| 35 | |||
| 36 | public function fake(array $mapping) |
||
| 48 | |||
| 49 | public function getName() |
||
| 53 | } |
||
| 54 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: