Code Duplication    Length = 10-11 lines in 3 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

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

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

@@ 91-101 (lines=11) @@
88
     * @param int $pageNumber
89
     * @param  string $actorId
90
     */
91
    public function __construct($institution, $pageNumber, $actorId)
92
    {
93
        $this->assertNonEmptyString($institution, 'institution');
94
        Assert\that($pageNumber)
95
            ->integer('Page number must be an integer')
96
            ->min(1, 'Page number must be greater than or equal to 1');
97
98
        $this->actorInstitution = $institution;
99
        $this->actorId = $actorId;
100
        $this->pageNumber = $pageNumber;
101
    }
102
103
    /**
104
     * @param string $actorInstitution