Apple_Actions\Index\Section::perform PHP 메소드

perform() 공개 메소드

Get the section data from Apple News.
public perform ( ) : object
리턴 object
    public function perform()
    {
        // Get the section from the API
        $section = $this->get_api()->get_section($this->section_id);
        if (empty($section->data)) {
            return null;
        }
        return $section;
    }