@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * Get the attributes that should be handled as carbonated timestamps. |
| 26 | 26 | * |
| 27 | - * @return array |
|
| 27 | + * @return string[] |
|
| 28 | 28 | */ |
| 29 | 29 | public function carbonatedTimestamps() |
| 30 | 30 | { |
@@ -479,6 +479,10 @@ discard block |
||
| 479 | 479 | $this->attributes[$key] = $value; |
| 480 | 480 | } |
| 481 | 481 | |
| 482 | + /** |
|
| 483 | + * @param Carbonated $instance |
|
| 484 | + * @param string $propertyName |
|
| 485 | + */ |
|
| 482 | 486 | private function ensureProperty($instance, $propertyName) |
| 483 | 487 | { |
| 484 | 488 | if(!property_exists($instance, $propertyName)) |