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/RaSecondFactorSearchQuery.php 1 location

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

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