set() public static method

__set() implementation.
public static set ( $_this, $name, $value ) : void
return void
Example #1
0
 /**
  * Sets value of a property. Do not call directly.
  *
  * @param string $name
  * @param mixed $value
  *
  * @throws \Nette\MemberAccessException
  * @return void
  */
 public function __set($name, $value)
 {
     if ($name === '_conn') {
         $this->_conn = $value;
         return;
     }
     ObjectMixin::set($this, $name, $value);
 }
 /**
  * Sets value of a property. Do not call directly.
  *
  * @param string $name
  * @param mixed $value
  *
  * @throws \Nette\MemberAccessException
  * @return void
  */
 public function __set($name, $value)
 {
     ObjectMixin::set($this, $name, $value);
 }
Example #3
0
 /**
  * Sets value of a property. Do not call directly.
  * @param  string  property name
  * @param  mixed   property value
  * @return void
  * @throws MemberAccessException if the property is not defined or is read-only
  */
 public function __set($name, $value)
 {
     Nette\Utils\ObjectMixin::set($this, $name, $value);
 }