1 | <?php |
||
24 | abstract class AbstractFTPClient { |
||
25 | |||
26 | /** |
||
27 | * Authenticator. |
||
28 | * |
||
29 | * @var Authenticator |
||
30 | */ |
||
31 | private $authenticator; |
||
32 | |||
33 | /** |
||
34 | * Connection. |
||
35 | * |
||
36 | * @var mixed |
||
37 | */ |
||
38 | private $connection; |
||
39 | |||
40 | /** |
||
41 | * Constructor. |
||
42 | * |
||
43 | * @param Authenticator $authenticator The authenticator. |
||
44 | */ |
||
45 | protected function __construct(Authenticator $authenticator) { |
||
48 | |||
49 | /** |
||
50 | * Closes this FTP connection. |
||
51 | * |
||
52 | * @return AbstractFTPClient Returns this abstract FTP client. |
||
53 | * @throws FTPException Throws a FTP exception if an I/O error occurs. |
||
54 | */ |
||
55 | public function close() { |
||
61 | |||
62 | /** |
||
63 | * Opens this FTP connection. |
||
64 | * |
||
65 | * @param integer $timeout The timeout. |
||
66 | * @return AbstractFTPClient Returns this abstract FTP client. |
||
67 | * @throws FTPException Throws a FTP exception if an I/O error occurs. |
||
68 | */ |
||
69 | abstract public function connect($timeout = 90); |
||
70 | |||
71 | /** |
||
72 | * Deletes a file on the FTP server. |
||
73 | * |
||
74 | * @param string $path The file to delete. |
||
75 | * @return AbstractFTPClient Returns this abstract FTP client. |
||
76 | * @throws FTPException Throws a FTP exception if an I/O error occurs. |
||
77 | */ |
||
78 | public function delete($path) { |
||
84 | |||
85 | /** |
||
86 | * Get the authenticator. |
||
87 | * |
||
88 | * @return Authenticator Returns the authenticator. |
||
89 | */ |
||
90 | final public function getAuthenticator() { |
||
93 | |||
94 | /** |
||
95 | * Get the connection. |
||
96 | * |
||
97 | * @return mixed Returns the connection. |
||
98 | */ |
||
99 | final public function getConnection() { |
||
102 | |||
103 | /** |
||
104 | * Logs in to this FTP connection. |
||
105 | * |
||
106 | * @return AbstractFTPClient Returns this abstract FTP client. |
||
107 | * @throws FTPException Throws a FTP exception if an I/O error occurs. |
||
108 | */ |
||
109 | public function login() { |
||
117 | |||
118 | /** |
||
119 | * Construct a new FTP exception. |
||
120 | * |
||
121 | * @param string $message The message. |
||
122 | * @return FTPException Returns a new FTP exception. |
||
123 | */ |
||
124 | final protected function newFTPException($message) { |
||
127 | |||
128 | /** |
||
129 | * Tuns passive mode on or off. |
||
130 | * |
||
131 | * @param boolean $pasv The passive mode. |
||
132 | * @return AbstractFTPClient Returns this abstract FTP client. |
||
133 | * @throws FTPException Throws a FTP exception if an I/O error occurs. |
||
134 | */ |
||
135 | public function pasv($pasv) { |
||
141 | |||
142 | /** |
||
143 | * Uploads a file to The FTP server. |
||
144 | * |
||
145 | * @param string $localFile The local file. |
||
146 | * @param string $remoteFile The remote file. |
||
147 | * @param integer $mode The mode. |
||
148 | * @param integer $startPos The start position. |
||
149 | * @return AbstractFTPClient Returns this abstract FTP client. |
||
150 | * @throws FTPException Throws a FTP exception if an I/O error occurs. |
||
151 | */ |
||
152 | public function put($localFile, $remoteFile, $mode = FTP_IMAGE, $startPos = 0) { |
||
158 | |||
159 | /** |
||
160 | * Creates a directory. |
||
161 | * |
||
162 | * @param string $directory The directory. |
||
163 | * @return AbstractFTPClient Returns this abstract FTP client. |
||
164 | * @throws FTPException Throws a FTP exception if an I/O error occurs. |
||
165 | */ |
||
166 | public function mkdir($directory) { |
||
172 | |||
173 | /** |
||
174 | * Renames a file or a directory on the FTP server. |
||
175 | * |
||
176 | * @param string $oldName The old file/directory name. |
||
177 | * @param string $newName The new name. |
||
178 | * @return AbstractFTPClient Returns this abstract FTP client. |
||
179 | * @throws FTPException Throws a FTP exception if an I/O error occurs. |
||
180 | */ |
||
181 | public function rename($oldName, $newName) { |
||
187 | |||
188 | /** |
||
189 | * Removes a directory. |
||
190 | * |
||
191 | * @param string $directory The directory. |
||
192 | * @return AbstractFTPClient Returns this abstract FTP client. |
||
193 | * @throws FTPException Throws a FTP exception if an I/O error occurs. |
||
194 | */ |
||
195 | public function rmdir($directory) { |
||
201 | |||
202 | /** |
||
203 | * Set the authenticator. |
||
204 | * |
||
205 | * @param \WBW\Library\FTP\Client\Authenticator $authenticator The authenticator. |
||
206 | * @returns AbstractFTPClient Returns this abstract FTP client. |
||
207 | */ |
||
208 | final protected function setAuthenticator(Authenticator $authenticator) { |
||
212 | |||
213 | /** |
||
214 | * Set the connection. |
||
215 | * |
||
216 | * @param mixed $connection The connection. |
||
217 | * @returns AbstractFTPClient Returns this abstract FTP client. |
||
218 | */ |
||
219 | final protected function setConnection($connection) { |
||
223 | |||
224 | } |
||
225 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.