supportsSize() public method

Can this storage get file size info?
public supportsSize ( ) : mixed
return mixed
Beispiel #1
0
 /**
  * Get file size in bytes
  *
  * @return int|null Number of bytes or null
  */
 public function getSize()
 {
     if ($this->size === null && $this->storage->supportsSize()) {
         $this->size = $this->storage->getSize($this->key);
     }
     return $this->size;
 }