Skip to content

Commit 6ff9cdc

Browse files
l-xusox
authored andcommitted
Remove unused and useless methods from hydrator
1 parent 45bf8f0 commit 6ff9cdc

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

src/Scn/Hydrator/Hydrator.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,4 @@ public function extract(ExtractorConfigInterface $config, object $entity): array
4040

4141
return $data;
4242
}
43-
44-
public function postExtract(ExtractorConfigInterface $config, object $entity): void
45-
{
46-
if ($postExtractor = $config->getPostExtractCallback()) {
47-
$postExtractor = $postExtractor->bindTo($entity, $entity);
48-
$postExtractor();
49-
}
50-
}
51-
52-
public function postHydrate(HydratorConfigInterface $config, object $entity): void
53-
{
54-
if ($postHydrator = $config->getPostHydrateCallback()) {
55-
$postHydrator = $postHydrator->bindTo($entity, $entity);
56-
$postHydrator();
57-
}
58-
}
5943
}

src/Scn/Hydrator/HydratorInterface.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,5 @@ interface HydratorInterface
1212

1313
public function hydrate(HydratorConfigInterface $config, object $entity, array $data): void;
1414

15-
public function postHydrate(HydratorConfigInterface $config, object $entity): void;
16-
1715
public function extract(ExtractorConfigInterface $config, object $entity): array;
18-
19-
public function postExtract(ExtractorConfigInterface $config, object $entity): void;
2016
}

0 commit comments

Comments
 (0)