/**
  * AbstractObject constructor.
  *
  * @param DriverInterface  $driver
  * @param                  $path
  * @param string           $mode
  */
 public function __construct(DriverInterface $driver, $path, $mode = 'r')
 {
     $this->driver = $driver;
     $this->path = $driver->getPath($path);
     $this->mode = $mode;
     $this->open($mode);
 }