Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add @SInCE tag
  • Loading branch information
butonic authored and tomneedham committed Aug 29, 2017
commit 53239f31443b5fd3af25e3e8ca43d7cc36546c8e
7 changes: 6 additions & 1 deletion lib/public/Share/Events/AcceptShare.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,10 @@

namespace OCP\Share\Events;


/**
* Class AcceptShare
*
* @package OCP\Share\Events
* @since 10.0.2
*/
class AcceptShare extends ShareEvent {}
6 changes: 6 additions & 0 deletions lib/public/Share/Events/DeclineShare.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@

namespace OCP\Share\Events;

/**
* Class DeclineShare
*
* @package OCP\Share\Events
* @since 10.0.2
*/
class DeclineShare extends ShareEvent {}
10 changes: 10 additions & 0 deletions lib/public/Share/Events/ShareEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@

use Symfony\Component\EventDispatcher\Event;

/**
* Class ShareEvent
*
* @package OCP\Share\Events
* @since 10.0.2
*/
class ShareEvent extends Event {

// TODO when the sharing code uses a Share entity use that instead of an array
Expand All @@ -36,27 +42,31 @@ public function __construct($share) {

/**
* @return array
* @since 10.0.2
*/
public function getShare() {
return $this->share;
}

/**
* @return string url
* @since 10.0.2
*/
public function getRemote() {
return $this->share['remote'];
}

/**
* @return int
* @since 10.0.2
*/
public function getRemoteId() {
return (int)$this->share['remote_id'];
}

/**
* @return string
* @since 10.0.2
*/
public function getShareToken() {
return $this->share['share_token'];
Expand Down