Code Duplication    Length = 23-23 lines in 2 locations

src/DataTransformer/Request/Group/ListGroupRequestDataTransformer.php 1 location

@@ 11-33 (lines=23) @@
8
 * Class ListGroupRequestDataTransformer
9
 * @package OmnideskBundle\DataTransformer\Request\Group
10
 */
11
class ListGroupRequestDataTransformer implements DataTransformerInterface
12
{
13
    /**
14
     * @param ListGroupRequest $value
15
     * @return array
16
     */
17
    public function transform($value)
18
    {
19
        return [
20
            'page' => $value->getPage(),
21
            'limit' => $value->getLimit(),
22
        ];
23
    }
24
25
    /**
26
     * @param array $value
27
     * @return ListGroupRequest
28
     */
29
    public function reverseTransform($value)
30
    {
31
        throw new \LogicException('Method not implemented.');
32
    }
33
}
34

src/DataTransformer/Request/Staff/ListStaffRequestDataTransformer.php 1 location

@@ 11-33 (lines=23) @@
8
 * Class ListStaffRequestDataTransformer
9
 * @package OmnideskBundle\DataTransformer\Request
10
 */
11
class ListStaffRequestDataTransformer implements DataTransformerInterface
12
{
13
    /**
14
     * @param ListStaffRequest $value
15
     * @return array
16
     */
17
    public function transform($value)
18
    {
19
        return [
20
            'page' => $value->getPage(),
21
            'limit' => $value->getLimit(),
22
        ];
23
    }
24
25
    /**
26
     * @param array $value
27
     * @return ListStaffRequest
28
     */
29
    public function reverseTransform($value)
30
    {
31
        throw new \LogicException('Method not implemented.');
32
    }
33
}
34