Skip to content

Instantly share code, notes, and snippets.

@lucasemanuel
Created June 11, 2019 02:22
Show Gist options
  • Save lucasemanuel/c162efa2c2222c2b10fba8206a1daea7 to your computer and use it in GitHub Desktop.
Save lucasemanuel/c162efa2c2222c2b10fba8206a1daea7 to your computer and use it in GitHub Desktop.
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