예제 #1
0
파일: Remove.php 프로젝트: jgswift/magery
 /**
  * Unset magic
  * @param string $name
  */
 public function __unset($name)
 {
     Magic::remove($this, $name);
 }
예제 #2
0
파일: Write.php 프로젝트: jgswift/magery
 /**
  * Set trait
  * @param string $name
  * @param mixed $value
  * @return mixed
  */
 public function __set($name, $value)
 {
     return Magic::write($this, $name, $value);
 }
예제 #3
0
파일: Read.php 프로젝트: jgswift/magery
 /**
  * Get magic
  * @param string $name
  * @return mixed
  */
 public function __get($name)
 {
     return ($value = Magic::read($this, $name)) instanceof None ? isset($this->{$name}) ? $this->{$name} : null : $value;
 }
예제 #4
0
파일: Exists.php 프로젝트: jgswift/magery
 /**
  * Isset magic
  * @param string $name
  * @return boolean
  */
 function __isset($name)
 {
     return (bool) Magic::exists($this, $name);
 }
예제 #5
0
파일: Call.php 프로젝트: jgswift/magery
 /**
  * Call magic
  * @param string $name
  * @param array $arguments
  * @return mixed
  */
 function __call($name, $arguments)
 {
     return Magic::call($this, $name, $arguments);
 }