[Share 2.0] Update share class
More getters and setters are required to properly create shares
This commit is contained in:
parent
6c77d1734e
commit
4f2e84a0ec
2 changed files with 35 additions and 2 deletions
|
@ -101,7 +101,7 @@ interface IShare {
|
|||
* @param \DateTime $expireDate
|
||||
* @return Share The modified object
|
||||
*/
|
||||
public function setExpirationDate(\DateTime $expireDate);
|
||||
public function setExpirationDate($expireDate);
|
||||
|
||||
/**
|
||||
* Get the share expiration date
|
||||
|
@ -110,6 +110,14 @@ interface IShare {
|
|||
*/
|
||||
public function getExpirationDate();
|
||||
|
||||
/**
|
||||
* Set the sharer of the path
|
||||
*
|
||||
* @param IUser|string $sharedBy
|
||||
* @return Share The modified object
|
||||
*/
|
||||
public function setSharedBy($sharedBy);
|
||||
|
||||
/**
|
||||
* Get share sharer
|
||||
*
|
||||
|
@ -117,6 +125,15 @@ interface IShare {
|
|||
*/
|
||||
public function getSharedBy();
|
||||
|
||||
/**
|
||||
* Set the original share owner (who owns the path)
|
||||
*
|
||||
* @param IUser|string
|
||||
*
|
||||
* @return Share The modified object
|
||||
*/
|
||||
public function setShareOwner($shareOwner);
|
||||
|
||||
/**
|
||||
* Get the original share owner (who owns the path)
|
||||
*
|
||||
|
@ -140,6 +157,14 @@ interface IShare {
|
|||
*/
|
||||
public function getPassword();
|
||||
|
||||
/**
|
||||
* Set the token
|
||||
*
|
||||
* @param string $token
|
||||
* @return Share The modified object
|
||||
*/
|
||||
public function setToken($token);
|
||||
|
||||
/**
|
||||
* Get the token
|
||||
*
|
||||
|
@ -154,6 +179,14 @@ interface IShare {
|
|||
*/
|
||||
public function getParent();
|
||||
|
||||
/**
|
||||
* Set the target of this share
|
||||
*
|
||||
* @param string $target
|
||||
* @return Share The modified object
|
||||
*/
|
||||
public function setTarget($target);
|
||||
|
||||
/**
|
||||
* Get the target of this share
|
||||
*
|
||||
|
|
|
@ -163,7 +163,7 @@ class Share implements IShare {
|
|||
* @param \DateTime $expireDate
|
||||
* @return Share The modified object
|
||||
*/
|
||||
public function setExpirationDate(\DateTime $expireDate) {
|
||||
public function setExpirationDate($expireDate) {
|
||||
//TODO checks
|
||||
|
||||
$this->expireDate = $expireDate;
|
||||
|
|
Loading…
Reference in a new issue