Accessing username on the interface Ticaje\Connector\Interfaces\CredentialInterface suggest that you code against a concrete implementation. How about adding an instanceof check?
Accessing password on the interface Ticaje\Connector\Interfaces\CredentialInterface suggest that you code against a concrete implementation. How about adding an instanceof check?
Loading history...
40
} catch (\Exception $exception) {
41
$this->connected = false;
42
}
43
return $this->connected;
44
}
45
46
/**
47
* @inheritDoc
48
*/
49
public function get($path = '')
50
{
51
return $this->client->get($path);
52
}
53
54
/**
55
* @inheritDoc
56
*/
57
public function ls($dir = '.'): array
58
{
59
return $this->client->nlist($dir);
60
}
61
62
/**
63
* @inheritDoc
64
*/
65
public function download($path = '', $destination = false)