Created
June 11, 2019 02:22
-
-
Save lucasemanuel/c162efa2c2222c2b10fba8206a1daea7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function __get($name) { | |
echo '---'.$name.'---'; | |
if ($name == 'arrVariations') { | |
//die($name); | |
return []; | |
} | |
return parent::__get($name); | |
} | |
public function __set($name,$value) { | |
return parent::__set($name,$value); | |
} | |
public function getArrVariations($key){ | |
return $this->arrVariations[$key]; | |
} | |
public function setArrVariations($key, $variation){ | |
$this->arrVariations[$key] = $variation; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment