Created
March 5, 2015 13:08
-
-
Save piwi91/e7207970d6f4c99fbc44 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
<?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