| Total Complexity | 5 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 5 | trait CanBuild |
||
| 6 | { |
||
| 7 | protected $isBuild = false; |
||
| 8 | protected $buildMethods = ['buildFrom', 'buildRecipients', 'buildSubject', 'buildBody', 'buildAttachments']; |
||
| 9 | |||
| 10 | protected function guardIsBuild() |
||
| 11 | { |
||
| 12 | if ($this->isBuild) { |
||
| 13 | return; |
||
| 14 | } |
||
| 15 | $this->build(); |
||
| 16 | $this->isBuild = true; |
||
| 17 | } |
||
| 18 | |||
| 19 | protected function build() |
||
| 27 | } |
||
| 28 | } |
||
| 29 |