| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Luminaire\Premailer; |
||
| 46 | protected function setHtmlContent($htmlContent) |
||
| 47 | { |
||
| 48 | if (is_string($htmlContent)) |
||
| 49 | { |
||
| 50 | $this->content = $htmlContent; |
||
| 51 | } |
||
| 52 | else |
||
| 53 | { |
||
| 54 | throw new InvalidArgumentException("Invalid type '" . gettype($htmlContent). "' for argument 'htmlContent' given."); |
||
| 55 | } |
||
| 56 | |||
| 57 | return $this; |
||
| 58 | } |
||
| 59 | |||
| 71 |