Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | trait HasOsnovaResource |
||
9 | { |
||
10 | /** |
||
11 | * Determines whether the current object has OsnovaResource instance. |
||
12 | * |
||
13 | * @return bool |
||
14 | */ |
||
15 | public function hasOsnovaResource() |
||
16 | { |
||
17 | return !is_null($this->resource); |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * Get the OsnovaResource instance. |
||
22 | * |
||
23 | * @return OsnovaResource |
||
24 | */ |
||
25 | public function getOsnovaResource() |
||
34 | } |
||
35 | } |
||
36 |