Code Duplication    Length = 11-12 lines in 3 locations

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

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

@@ 76-87 (lines=12) @@
73
     * @param string $actorInstitution
74
     * @param int $pageNumber
75
     */
76
    public function __construct($actorId, $actorInstitution, $pageNumber)
77
    {
78
        $this->assertNonEmptyString($actorId, 'actorId');
79
        $this->assertNonEmptyString($actorInstitution, 'actorInstitution');
80
        Assert\that($pageNumber)
81
            ->integer('Page number must be an integer')
82
            ->min(0, 'Page number must be greater than or equal to 1');
83
84
        $this->actorId = $actorId;
85
        $this->actorInstitution = $actorInstitution;
86
        $this->pageNumber  = $pageNumber;
87
    }
88
89
    /**
90
     * @param string $commonName

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

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