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