search($page, $perPage, $column, $order, $query); } /** * @param $id int * @return LuDbo|null */ public static function getById($id) { $data = static::getDataAccess()->getById($id); if (is_null($data)) self::notFound(); return $data; } /** * @param $id int */ public static function deleteById($id) { static::getDataAccess()->deleteById($id); } /** * @return LuDataAccess */ protected static function getDataAccess() { return null; } }