|
|
|
|
@ -60,8 +60,7 @@ class Share implements IShare {
|
|
|
|
|
private $sendPasswordByTalk = false;
|
|
|
|
|
/** @var string */
|
|
|
|
|
private $token;
|
|
|
|
|
/** @var int */
|
|
|
|
|
private $parent;
|
|
|
|
|
private ?int $parent = null;
|
|
|
|
|
/** @var string */
|
|
|
|
|
private $target;
|
|
|
|
|
/** @var \DateTime */
|
|
|
|
|
@ -526,25 +525,12 @@ class Share implements IShare {
|
|
|
|
|
return $this->token;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Set the parent of this share
|
|
|
|
|
*
|
|
|
|
|
* @param int $parent
|
|
|
|
|
* @return IShare
|
|
|
|
|
* @deprecated 12.0.0 The new shares do not have parents. This is just here for legacy reasons.
|
|
|
|
|
*/
|
|
|
|
|
public function setParent($parent) {
|
|
|
|
|
public function setParent(int $parent): self {
|
|
|
|
|
$this->parent = $parent;
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the parent of this share.
|
|
|
|
|
*
|
|
|
|
|
* @return int
|
|
|
|
|
* @deprecated 12.0.0 The new shares do not have parents. This is just here for legacy reasons.
|
|
|
|
|
*/
|
|
|
|
|
public function getParent() {
|
|
|
|
|
public function getParent(): ?int {
|
|
|
|
|
return $this->parent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|