| Total Complexity | 5 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 19 | trait StorableTrait |
||
| 20 | { |
||
| 21 | use \Drone\Error\ErrorTrait; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Local file when exceptions will be stored |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $outputFile; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Returns the outputFile attribute |
||
| 32 | * |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getOutputFile() |
||
| 36 | { |
||
| 37 | return $this->outputFile; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Sets outputFile attribute |
||
| 42 | * |
||
| 43 | * @param string $value |
||
| 44 | * |
||
| 45 | * @return null |
||
| 46 | */ |
||
| 47 | public function setOutputFile($value) |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Stores the exception |
||
| 54 | * |
||
| 55 | * By default exceptions are stored in a JSON file << $this->outputFile >> |
||
| 56 | * |
||
| 57 | * @return string|boolean |
||
| 58 | */ |
||
| 59 | public function store() |
||
| 76 |