code: public static function createFromFile(string $file): array
      {
          if (! file_exists($file)) {
              throw new Exception\FileNotFoundException(
                  sprintf(
                      'The given file "%s" does not exists.',
                      $file
                  )
              );
          }
  
          $data = include_once $file;
  
          return self::createFromArray($data);
      }
docs: @param string $file
  
  @return array
  @throws Exception\FileNotFoundException