public function __construct($dir)
 {
     ArgValidator::assert($dir, 'string');
     $this->dir = $dir;
     parent::__construct($dir);
 }