Code Duplication    Length = 10-10 lines in 3 locations

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

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

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

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

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

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