Completed
Pull Request — master (#5)
by Dmitry
05:48
created

Reports   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setProcessingMode() 0 5 1
1
<?php
2
3
namespace Yandex\Direct\Service;
4
5
use Yandex\Direct\Service;
6
use Yandex\Direct\Transport\ReportRequestInterface;
7
8
/**
9
 * Class Reports
10
 *
11
 * @author Dmitry Gladyshev <[email protected]>
12
 */
13
final class Reports extends Service
14
{
15
    protected $processingMode = ReportRequestInterface::PROCESSING_MODE_AUTO;
16
17
    /**
18
     * @param $mode
19
     * @return $this
20
     */
21
    public function setProcessingMode($mode)
22
    {
23
        $this->processingMode = $mode;
24
        return $this;
25
    }
26
}
27