Slack\User::isOwner PHP Method

isOwner() public method

Checks if the user is a team owner.
public isOwner ( ) : boolean
return boolean True if the user is a team owner.
    public function isOwner()
    {
        return $this->data['is_owner'];
    }

Usage Example

示例#1
0
 public function testIsOwner()
 {
     $is = $this->faker->boolean;
     $user = new User($this->client, ['is_owner' => $is]);
     $this->assertEquals($is, $user->isOwner());
 }