Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function __construct(array $inputs) {
- $this->arrayData = $inputs;
- foreach ($inputs as $number) {
- $inputs = $number;
- if (is_numeric($number) === FALSE) {
- throw new Exception("Input array is not numeric");
- }
- if ($inputs < $number) {
- throw new Exception("Input array is less than zero");
- }
- $this->arrayData = $inputs;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement