permission = $permission; $this->directory = $folderItem; $this->userFileOwnerInterface = $user; } /** * Get id * * @return int */ public function getId() { return $this->id; } /** * @param Directory $directory * @return FolderOwner */ public function setFolder(Directory $directory): FolderOwner { $this->directory = $directory; return $this; } /** * @return Directory */ public function getFolder(): Directory { return $this->directory; } /** * @param UserFileOwnerInterface $userFileOwnerInterface * @return FolderOwner */ public function setUserFileOwnerInterface(UserFileOwnerInterface $userFileOwnerInterface): FolderOwner { $this->userFileOwnerInterface = $userFileOwnerInterface; return $this; } /** * @return UserFileOwnerInterface */ public function getUserFileOwnerInterface(): UserFileOwnerInterface { return $this->userFileOwnerInterface; } /** * @param int $permission * @return FolderOwner */ public function setPermission(int $permission): FolderOwner { $this->permission = $permission; return $this; } /** * @return int */ public function getPermission(): int { return $this->permission; } public function getDirectory(): ?Directory { return $this->directory; } public function setDirectory(?Directory $directory): self { $this->directory = $directory; return $this; } }