Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
36 changes: 36 additions & 0 deletions src/Payload/UsersLookupByEmailPayload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php
/**
* @author nediam
* @date 2019-06-12 22:05
*/

declare(strict_types=1);

namespace CL\Slack\Payload;


class UsersLookupByEmailPayload extends AbstractPayload
{
/** @var string */
private $email;

public function getEmail()
{
return $this->email;
}

public function setEmail($email)
{
$this->email = $email;

return $this;
}

/**
* @inheritdoc
*/
public function getMethod()
{
return 'users.lookupByEmail';
}
}
26 changes: 26 additions & 0 deletions src/Payload/UsersLookupByEmailPayloadResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* @author nediam
* @date 2019-06-12 22:05
*/

declare(strict_types=1);

namespace CL\Slack\Payload;


class UsersLookupByEmailPayloadResponse extends AbstractPayloadResponse
{
/**
* @var User|null
*/
private $user;

/**
* @return User|null
*/
public function getUser()
{
return $this->user;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CL\Slack\Payload\UsersLookupByEmailPayload:
properties:
email:
type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CL\Slack\Payload\UsersLookupByEmailPayloadResponse:
properties:
user:
type: CL\Slack\Model\User