seregazhuk\PinterestBot\Api\Providers\User::isBanned PHP Метод

isBanned() публичный Метод

Checks if current user is banned
public isBanned ( ) : boolean
Результат boolean
    public function isBanned()
    {
        $profile = $this->profile();
        return isset($profile['is_write_banned']) ? (bool) $profile['is_write_banned'] : false;
    }

Usage Example

Пример #1
0
 /** @test */
 public function it_should_return_ban_info_from_profile()
 {
     $profile = ['is_write_banned' => true];
     $this->apiShouldReturnData($profile)->assertEquals($profile['is_write_banned'], $this->provider->isBanned());
 }