Skip to content

Instantly share code, notes, and snippets.

@piwi91
Created March 5, 2015 13:08
Show Gist options
  • Save piwi91/e7207970d6f4c99fbc44 to your computer and use it in GitHub Desktop.
Save piwi91/e7207970d6f4c99fbc44 to your computer and use it in GitHub Desktop.
<?php
class ChartA {
public function getData()
{
/** @var $array array */
$array = $this->getStuffFromStorage();
// Remove null valuse
return $array;
}
}
class ChartB {
public function getData()
{
/** @var $array array */
$array = $this->getStuffFromStorage();
// Remove null valuse
return $array;
}
}
class ChartC {
public function getData()
{
/** @var $array array */
$array = $this->getStuffFromStorage();
// Remove null valuse
return $array;
}
}
$chartA = new ChartA();
$chartB = new ChartB();
$chartC = new ChartC();
$chartA->getData();
$chartB->getData();
$chartC->getData();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment