diff options
author | Thomas Citharel <tcit@tcit.fr> | 2022-03-22 12:39:23 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2022-05-12 18:31:59 +0200 |
commit | 232322fe062031d5fe5b5297ca60b22bc1da1d30 (patch) | |
tree | a2591d9ed9caf669cbc7c16142a84b00f435df8f /lib/private/Contacts/ContactsMenu/Actions | |
parent | 32139610c5e11ee84c71cc1db3e58523f749aa27 (diff) | |
download | nextcloud-server-232322fe062031d5fe5b5297ca60b22bc1da1d30.tar.gz nextcloud-server-232322fe062031d5fe5b5297ca60b22bc1da1d30.zip |
Modernize contacts menu
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'lib/private/Contacts/ContactsMenu/Actions')
-rw-r--r-- | lib/private/Contacts/ContactsMenu/Actions/LinkAction.php | 54 |
1 files changed, 12 insertions, 42 deletions
diff --git a/lib/private/Contacts/ContactsMenu/Actions/LinkAction.php b/lib/private/Contacts/ContactsMenu/Actions/LinkAction.php index 3f917854aac..a3054c9ee52 100644 --- a/lib/private/Contacts/ContactsMenu/Actions/LinkAction.php +++ b/lib/private/Contacts/ContactsMenu/Actions/LinkAction.php @@ -25,73 +25,44 @@ namespace OC\Contacts\ContactsMenu\Actions; use OCP\Contacts\ContactsMenu\ILinkAction; class LinkAction implements ILinkAction { - - /** @var string */ - private $icon; - - /** @var string */ - private $name; - - /** @var string */ - private $href; - - /** @var int */ - private $priority = 10; - - /** @var string */ - private $appId; + private string $icon = ''; + private string $name = ''; + private string $href = ''; + private int $priority = 10; + private string $appId = ''; /** * @param string $icon absolute URI to an icon */ - public function setIcon($icon) { + public function setIcon(string $icon) { $this->icon = $icon; } - /** - * @param string $name - */ - public function setName($name) { + public function setName(string $name) { $this->name = $name; } - /** - * @return string - */ - public function getName() { + public function getName(): string { return $this->name; } - /** - * @param int $priority - */ - public function setPriority($priority) { + public function setPriority(int $priority) { $this->priority = $priority; } - /** - * @return int - */ - public function getPriority() { + public function getPriority(): int { return $this->priority; } - /** - * @param string $href - */ - public function setHref($href) { + public function setHref(string $href) { $this->href = $href; } - /** - * @return string - */ - public function getHref() { + public function getHref(): string { return $this->href; } /** - * @param string $appId * @since 23.0.0 */ public function setAppId(string $appId) { @@ -99,7 +70,6 @@ class LinkAction implements ILinkAction { } /** - * @return string * @since 23.0.0 */ public function getAppId(): string { |