2024-10-15 17:10:48 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace OCA\OrganizationFolders\Db;
|
|
|
|
|
|
|
|
use JsonSerializable;
|
2024-10-30 04:45:56 +01:00
|
|
|
use OCA\OrganizationFolders\Interface\TableSerializable;
|
2024-10-15 17:10:48 +02:00
|
|
|
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
|
2024-10-30 04:45:56 +01:00
|
|
|
abstract class Resource extends Entity implements JsonSerializable, TableSerializable {
|
2024-10-30 01:49:41 +01:00
|
|
|
protected $organizationFolderId;
|
2024-10-15 17:10:48 +02:00
|
|
|
protected $parentResource;
|
|
|
|
protected $name;
|
|
|
|
protected $active;
|
2024-11-06 17:32:33 +01:00
|
|
|
protected $inheritManagers;
|
2024-10-15 17:10:48 +02:00
|
|
|
protected $lastUpdatedTimestamp;
|
|
|
|
|
|
|
|
public function __construct() {
|
2024-10-30 01:49:41 +01:00
|
|
|
$this->addType('organizationFolderId','integer');
|
2024-10-15 17:10:48 +02:00
|
|
|
$this->addType('parentResource','integer');
|
|
|
|
$this->addType('active','bool');
|
2024-11-06 17:32:33 +01:00
|
|
|
$this->addType('inheritManagers','bool');
|
2024-10-15 17:10:48 +02:00
|
|
|
$this->addType('lastUpdatedTimestamp','integer');
|
|
|
|
}
|
2024-10-30 04:45:56 +01:00
|
|
|
|
|
|
|
abstract public function getType(): string;
|
2024-10-15 17:10:48 +02:00
|
|
|
}
|