src/Charcoal/Object/ObjectSchedule.php 1 location
|
@@ 100-109 (lines=10) @@
|
| 97 |
|
* @throws RuntimeException If the model factory was not previously set. |
| 98 |
|
* @return FactoryInterface |
| 99 |
|
*/ |
| 100 |
|
protected function modelFactory() |
| 101 |
|
{ |
| 102 |
|
if (!isset($this->modelFactory)) { |
| 103 |
|
throw new RuntimeException(sprintf( |
| 104 |
|
'Model Factory is not defined for "%s"', |
| 105 |
|
get_class($this) |
| 106 |
|
)); |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
return $this->modelFactory; |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
/** |
src/Charcoal/Object/ObjectRoute.php 1 location
|
@@ 420-428 (lines=9) @@
|
| 417 |
|
* @throws RuntimeException If the model factory was not previously set. |
| 418 |
|
* @return FactoryInterface |
| 419 |
|
*/ |
| 420 |
|
public function modelFactory() |
| 421 |
|
{ |
| 422 |
|
if (!isset($this->modelFactory)) { |
| 423 |
|
throw new RuntimeException(sprintf( |
| 424 |
|
'Model Factory is not defined for "%s"', |
| 425 |
|
get_class($this) |
| 426 |
|
)); |
| 427 |
|
} |
| 428 |
|
|
| 429 |
|
return $this->modelFactory; |
| 430 |
|
} |
| 431 |
|
|