Code Duplication    Length = 10-10 lines in 3 locations

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

@@ 60-69 (lines=10) @@
57
     * @param string $institution
58
     * @param int    $pageNumber
59
     */
60
    public function __construct($institution, $pageNumber)
61
    {
62
        $this->assertNonEmptyString($institution, 'institution');
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->institution = $institution;
68
        $this->pageNumber  = $pageNumber;
69
    }
70
71
    /**
72
     * @param string $commonName

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