Code Duplication    Length = 10-10 lines in 2 locations

src/wormling/phparia/Resources/Peer.php 1 location

@@ 100-109 (lines=10) @@
97
     * @param AriClient $client
98
     * @param string $response
99
     */
100
    public function __construct(AriClient $client, $response)
101
    {
102
        parent::__construct($client, $response);
103
104
        $this->address = $this->getResponseValue('address');
105
        $this->cause = $this->getResponseValue('cause');
106
        $this->peerStatus = $this->getResponseValue('peer_status');
107
        $this->port = $this->getResponseValue('port');
108
        $this->time = $this->getResponseValue('time');
109
    }
110
111
}
112

src/wormling/phparia/Resources/Playback.php 1 location

@@ 148-157 (lines=10) @@
145
     * @param AriClient $client
146
     * @param string $response
147
     */
148
    public function __construct(AriClient $client, $response)
149
    {
150
        parent::__construct($client, $response);
151
152
        $this->id = $this->getResponseValue('id');
153
        $this->language = $this->getResponseValue('language');
154
        $this->mediaUri = $this->getResponseValue('media_uri');
155
        $this->state = $this->getResponseValue('state');
156
        $this->targetUri = $this->getResponseValue('target_uri');
157
    }
158
159
}
160