public function CommerceFileLicenseEntity::__set in Commerce File 7
File
- includes/
commerce_file_license.entity.inc, line 821 - Provides a base class for CommerceFileLicenseEntity.
Class
- CommerceFileLicenseEntity
- A Commerce File License entity class.
Code
public function __set($name, $value) {
$method = "set_{$name}";
if (method_exists($this, $method)) {
$this
->{$method}($value);
}
elseif (!method_exists($this, "get_{$name}")) {
// allow lazy setting for non read only properties
$this->{$name} = $value;
}
}