Exemplo n.º 1
0
        $network = 'IFC';
        $show = 'Comedy Bang! Bang!';
        try {
            # execute the schedule count
        } catch (\Exception $e) {
            $error = 'Unable to complete: ' . $e->getMessage() . PHP_EOL;
            echo $error;
            die;
        }
    }
    # retrieve the schedule data from endpoint, and store in schedule_data property
    private function get_schedule($network)
    {
    }
    # parse the json based schedule, and store in parsed_data property
    private function parse_schedule()
    {
    }
    # count the number of occurances, and store in count property
    private function count_schedule($showname)
    {
    }
    // output the count
    public function get_count()
    {
        echo $this->count . PHP_EOL;
    }
}
$schedule = new schedule();
$schedule->get_count();