PHPDoc and code formatting changes
This commit is contained in:
@@ -11,10 +11,19 @@ class Service extends Eloquent {
|
||||
'properties' => ''
|
||||
];
|
||||
|
||||
/**
|
||||
* Returns a decoded properties object for the service.
|
||||
* @param string $properties
|
||||
* @return object
|
||||
*/
|
||||
public function getPropertiesAttribute($properties) {
|
||||
return json_decode($properties);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the properties attribute which auto encodes to a JSON string.
|
||||
* @param mixed $properties
|
||||
*/
|
||||
public function setPropertiesAttribute($properties) {
|
||||
$this->attributes['properties'] = json_encode($properties);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user