Completed
Push — master ( c42e36...b38be8 )
by
unknown
08:24 queued 05:17
created

BaseRequest::setFilePath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php declare(strict_types = 1);
2
3
namespace PeeHaa\AsyncTwitter\Api\Request\Media;
4
5
use PeeHaa\AsyncTwitter\Api\Request\BaseRequest as ApiBaseRequest;
6
7
abstract class BaseRequest extends ApiBaseRequest implements Request
8
{
9
    const BASE_URL = 'http://upload.twitter.com/1.1';
10
11
    /**
12
     * @param string $filePath
13
     * @return $this
14
     */
15
    public function setFilePath(string $filePath)
16
    {
17
        $this->parameters['file_path'] = $filePath;
18
19
        return $this;
20
    }
21
}
22