private function getName() { return $this->fileName = time() . rand(1, 10000) . $this->getFileExt(); }
public static function factory($accountType) { if (Instructor::getName() === $accountType) { return new Instructor(); } if (Uploader::getName() === $accountType) { return new Uploader(); } return new Student(); }