/** * Gets a File object by it's id. * * @param int $id * @return null|FileModel */ public function getById($id) { return FileModel::find($id); }