| Total Complexity | 6 | 
| Total Lines | 62 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 8 | final class FollowersDataProvider extends \Xervice\DataProvider\Business\Model\DataProvider\AbstractDataProvider implements \Xervice\DataProvider\Business\Model\DataProvider\DataProviderInterface  | 
            ||
| 9 | { | 
            ||
| 10 | /** @var int */  | 
            ||
| 11 | protected $total;  | 
            ||
| 12 | |||
| 13 | |||
| 14 | /**  | 
            ||
| 15 | * @return int  | 
            ||
| 16 | */  | 
            ||
| 17 | public function getTotal(): ?int  | 
            ||
| 18 |     { | 
            ||
| 19 | return $this->total;  | 
            ||
| 20 | }  | 
            ||
| 21 | |||
| 22 | |||
| 23 | /**  | 
            ||
| 24 | * @param int $total  | 
            ||
| 25 | * @return FollowersDataProvider  | 
            ||
| 26 | */  | 
            ||
| 27 | public function setTotal(?int $total = null)  | 
            ||
| 28 |     { | 
            ||
| 29 | $this->total = $total;  | 
            ||
| 30 | |||
| 31 | return $this;  | 
            ||
| 32 | }  | 
            ||
| 33 | |||
| 34 | |||
| 35 | /**  | 
            ||
| 36 | * @return FollowersDataProvider  | 
            ||
| 37 | */  | 
            ||
| 38 | public function unsetTotal()  | 
            ||
| 39 |     { | 
            ||
| 40 | $this->total = null;  | 
            ||
| 41 | |||
| 42 | return $this;  | 
            ||
| 43 | }  | 
            ||
| 44 | |||
| 45 | |||
| 46 | /**  | 
            ||
| 47 | * @return bool  | 
            ||
| 48 | */  | 
            ||
| 49 | public function hasTotal()  | 
            ||
| 50 |     { | 
            ||
| 51 | return ($this->total !== null && $this->total !== []);  | 
            ||
| 52 | }  | 
            ||
| 53 | |||
| 54 | |||
| 55 | /**  | 
            ||
| 56 | * @return array  | 
            ||
| 57 | */  | 
            ||
| 58 | protected function getElements(): array  | 
            ||
| 70 | ),  | 
            ||
| 71 | );  | 
            ||
| 72 | }  | 
            ||
| 73 | }  | 
            ||
| 74 |