ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ToGreyScale.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
30{
31 public const FOREVER_ID = '0afbf77b53955882c43b6673251261583f3d52ed5e980b6ea6c869c065991406';
32
33 public function __construct(
34 protected bool $persist = false,
35 protected int $quality = 75
36 ) {
37 }
38
39 public function getFlavourMachineId(): string
40 {
41 return GreyScaleMachine::ID;
42 }
43
44 public function getId(): string
45 {
46 return self::FOREVER_ID;
47 }
48
49
50 public function getInternalName(): string
51 {
52 return 'greyscale';
53 }
54
55 public function getVariantName(): ?string
56 {
57 return null;
58 }
59
60 public function getQuality(): int
61 {
62 return $this->quality;
63 }
64
65 public function persist(): bool
66 {
67 return $this->persist;
68 }
69}
getVariantName()
If a definition can be used in several variants (e.g.
Definition: ToGreyScale.php:55
getFlavourMachineId()
Defines the ID of the machine that supports this definition.
Definition: ToGreyScale.php:39
__construct(protected bool $persist=false, protected int $quality=75)
Definition: ToGreyScale.php:33
persist()
Define whether the generated flavor and the respective streams should be persisted,...
Definition: ToGreyScale.php:65
getInternalName()
This defines the speaky internal name of the definition, as the consumer would like to use it,...
Definition: ToGreyScale.php:50
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...