Element_OphTrOperationbooking_ScheduleOperation::__set PHP Method

__set() public method

make sure the cached dates array is reset when patient_unavailables is updated.
public __set ( string $name, mixed $value ) : mixed | void
$name string
$value mixed
return mixed | void
    public function __set($name, $value)
    {
        if ($name == 'patient_unavailables') {
            $this->_unavailable_dates = null;
        }
        parent::__set($name, $value);
    }