private function setParentProperty($name, $value)
{
static $useParentMethod = NULL;
if (NULL === $useParentMethod) {
$useParentMethod = method_exists(get_parent_class($this), '__set');
}
if ($useParentMethod) {
/** @noinspection PhpUndefinedMethodInspection */
parent::__set($name, $value);
} else {
$this->{$name} = $value;
}
}