mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
46 lines
739 B
PHP
46 lines
739 B
PHP
<?php
|
|
|
|
namespace OCP\TaskProcessing;
|
|
|
|
/**
|
|
* Data object for input output shape entries
|
|
* @since 30.0.0
|
|
*/
|
|
class ShapeDescriptor {
|
|
/**
|
|
* @param string $name
|
|
* @param string $description
|
|
* @param EShapeType $shapeType
|
|
* @since 30.0.0
|
|
*/
|
|
public function __construct(
|
|
private string $name,
|
|
private string $description,
|
|
private EShapeType $shapeType,
|
|
) {
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
* @since 30.0.0
|
|
*/
|
|
public function getName(): string {
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
* @since 30.0.0
|
|
*/
|
|
public function getDescription(): string {
|
|
return $this->description;
|
|
}
|
|
|
|
/**
|
|
* @return EShapeType
|
|
* @since 30.0.0
|
|
*/
|
|
public function getShapeType(): EShapeType {
|
|
return $this->shapeType;
|
|
}
|
|
}
|