load(); } /** * put your comment there... * * @param mixed $property */ public function __get($property) { $value = null; switch ($property) { // PostTypes always should be array. case 'postTypes': $value = parent::__get($property); $value = is_array($value) ? $value : array(); break; } return $value; } } // End class.