Code Duplication    Length = 10-10 lines in 2 locations

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

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

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

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