ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
Result.php
Go to the documentation of this file.
1 <?php
18 declare(strict_types=1);
19 
21 
24 
28 class Result
29 {
31  protected FileStream $stream;
32  protected int $index = 0;
33  protected bool $storeable = true;
34 
35  public function __construct(
36  FlavourDefinition $definition,
37  FileStream $stream,
38  int $index = 0,
39  bool $storeable = true
40  ) {
41  $this->definition = $definition;
42  $this->stream = $stream;
43  $this->index = $index;
44  $this->storeable = $storeable;
45  }
46 
47  public function getIndex(): int
48  {
49  return $this->index;
50  }
51 
52 
53  public function getDefinition(): FlavourDefinition
54  {
55  return $this->definition;
56  }
57 
58  public function getStream(): FileStream
59  {
60  return $this->stream;
61  }
62 
63  public function isStoreable(): bool
64  {
65  return $this->storeable;
66  }
67 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(FlavourDefinition $definition, FileStream $stream, int $index=0, bool $storeable=true)
Definition: Result.php:35
The base interface for all filesystem streams.
Definition: FileStream.php:31