Welcome Guest, Not a member yet? Register   Sign In
How use __set in driver class?
#3

(01-26-2020, 12:04 PM)jreklund Wrote: __set aren't a function you call by yourself. It's automatically invoked when you set an value to a Class.

$driver = new MyCoolDriver();
$driver->variable = 'My cool value';

$driver->variable will now invoke __set.

Thank you it is solving now
Reply


Messages In This Thread
How use __set in driver class? - by omid_student - 01-26-2020, 11:52 AM
RE: How use __set in driver class? - by jreklund - 01-26-2020, 12:04 PM
RE: How use __set in driver class? - by omid_student - 01-26-2020, 12:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB