Code Duplication    Length = 10-10 lines in 2 locations

src/Surfnet/StepupMiddlewareClient/Identity/Dto/RaCandidateSearchQuery.php 1 location

@@ 70-79 (lines=10) @@
67
     * @param string $institution
68
     * @param int    $pageNumber
69
     */
70
    public function __construct($actorInstitution, $pageNumber)
71
    {
72
        $this->assertNonEmptyString($actorInstitution, 'actorInstitution');
73
        Assert\that($pageNumber)
74
            ->integer('Page number must be an integer')
75
            ->min(0, 'Page number must be greater than or equal to 1');
76
77
        $this->actorInstitution = $actorInstitution;
78
        $this->pageNumber  = $pageNumber;
79
    }
80
81
    /**
82
     * @param string $commonName

src/Surfnet/StepupMiddlewareClient/Identity/Dto/RaListingSearchQuery.php 1 location

@@ 55-64 (lines=10) @@
52
     * @param string $institution
53
     * @param int    $pageNumber
54
     */
55
    public function __construct($actorInstitution, $pageNumber)
56
    {
57
        $this->assertNonEmptyString($actorInstitution, 'actorInstitution');
58
        Assert\that($pageNumber)
59
            ->integer('Page number must be an integer')
60
            ->min(0, 'Page number must be greater than or equal to 1');
61
62
        $this->actorInstitution = $actorInstitution;
63
        $this->pageNumber  = $pageNumber;
64
    }
65
66
    /**
67
     * @param string $institution