public function getFiles($group = null) { if (null == $group) { throw new InvalidParamException("missing one parameter for FileBehavior method `getFile(\$group)`"); } return File::getByModelAndGroup($this->owner, $group); }