refactor: object property names
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -16,23 +16,23 @@ abstract class EntityPropertiesBaseAbstract extends NodePropertiesBaseAbstract i
|
||||
public const JSON_TYPE = EntityPropertiesBaseInterface::JSON_TYPE;
|
||||
|
||||
public function size(): int {
|
||||
return $this->data[self::JSON_PROPERTY_SIZE] ?? 0;
|
||||
return $this->data[self::PROPERTY_SIZE] ?? 0;
|
||||
}
|
||||
|
||||
public function getLabel(): string {
|
||||
return $this->data[self::JSON_PROPERTY_LABEL] ?? '';
|
||||
return $this->data[self::PROPERTY_LABEL] ?? '';
|
||||
}
|
||||
|
||||
public function getMime(): string {
|
||||
return $this->data[self::JSON_PROPERTY_MIME] ?? '';
|
||||
return $this->data[self::PROPERTY_MIME] ?? '';
|
||||
}
|
||||
|
||||
public function getFormat(): string {
|
||||
return $this->data[self::JSON_PROPERTY_FORMAT] ?? '';
|
||||
return $this->data[self::PROPERTY_FORMAT] ?? '';
|
||||
}
|
||||
|
||||
public function getEncoding(): string {
|
||||
return $this->data[self::JSON_PROPERTY_ENCODING] ?? '';
|
||||
return $this->data[self::PROPERTY_ENCODING] ?? '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user