| @@ 29-33 (lines=5) @@ | ||
| 26 | ||
| 27 | if (is_string($name)) { |
|
| 28 | $this->setFileName($name); |
|
| 29 | } else { |
|
| 30 | throw new Exception( |
|
| 31 | 'Invalid fileName definition "(' . gettype($name) . ') ' . var_export($name, true) . '"' |
|
| 32 | ); |
|
| 33 | } |
|
| 34 | } |
|
| 35 | ||
| 36 | /** |
|
| @@ 40-49 (lines=10) @@ | ||
| 37 | $this->add($composeFile); |
|
| 38 | } elseif (is_string($composeFile)) { |
|
| 39 | $this->add(new ComposeFile($composeFile)); |
|
| 40 | } else { |
|
| 41 | throw new \Exception( |
|
| 42 | 'Invalid composeFile definition "(' . gettype( |
|
| 43 | $composeFile |
|
| 44 | ) . ') ' . var_export( |
|
| 45 | $composeFile, |
|
| 46 | true |
|
| 47 | ) . '"' |
|
| 48 | ); |
|
| 49 | } |
|
| 50 | } |
|
| 51 | } |
|
| 52 | ||