Lines 0.00% 0 / 3
Functions and Methods 0.00% 0 / 3
Classes and Traits 0.00% 0 / 1
Name Lines Functions and Methods CRAP Classes and Traits
OptionsTrait 0.00% 0 / 3 0.00% 0 / 3 12 0.00% 0 / 1
 checkOptionFlag 0.00% 0 / 1 0.00% 0 / 1 2
 setOptions 0.00% 0 / 1 0.00% 0 / 1 2
 getOptions 0.00% 0 / 1 0.00% 0 / 1 2
1<?php
2
3namespace BO\Zmsdldb\Importer;
4
5trait OptionsTrait
6{
7    protected int $options = 0;
8
9    protected function checkOptionFlag(int $optionFlag = 0): mixed
10    {
11        return $this->options & $optionFlag;
12    }
13
14    protected function setOptions(int $options = 0): void
15    {
16        $this->options = $options;
17    }
18
19    protected function getOptions(): int
20    {
21        return $this->options;
22    }
23}