Code Duplication    Length = 7-7 lines in 2 locations

src/Cdn77/Query/CreateResourceQuery.php 1 location

@@ 26-32 (lines=7) @@
23
     * @param string      $url
24
     * @param Client|null $client
25
     */
26
    public function __construct($login, $password, $url = self::URL, Client $client = null)
27
    {
28
        $this->url = $url;
29
        $this->login = $login;
30
        $this->client = $client?: new Client();
31
        $this->password = $password;
32
    }
33
34
    /**
35
     * @param string|null $domain

src/Cdn77/Query/ListResourcesQuery.php 1 location

@@ 26-32 (lines=7) @@
23
     * @param string      $url
24
     * @param Client|null $client
25
     */
26
    public function __construct($login, $password, $url = self::URL, Client $client = null)
27
    {
28
        $this->url = $url;
29
        $this->login = $login;
30
        $this->client = $client?: new Client();
31
        $this->password = $password;
32
    }
33
34
    /**
35
     * @return mixed|null