Пример #1
0
 /**
  * @return array
  */
 public function __sleep()
 {
     return array_merge(parent::__sleep(), ['_privateKey', '_publicKey', '_hostKey']);
 }
Пример #2
0
 /**
  * @param $umask
  *
  * @return FtpDriver
  */
 public function setUmask($umask)
 {
     parent::setUmask($umask);
     try {
         $this->site('UMASK ' . sprintf('%o', $this->getUmask()));
     } catch (Exception $e) {
     }
     return $this;
 }