ProjectService
extends AirlayService
in package
Class AirlayService
Table of Contents
- $ : AirlayConfig
- $collection : ProjectsCollection
- $rabbitmq : AMQPStreamConnection
- $user : UserEntity
- $collection : mixed
- __construct() : mixed
- createProject() : ProjectEntity
- deleteProject() : void
- getCollection() : mixed
- getUserProjects() : array<string|int, mixed>
- hasAccessByUser() : void
Properties
$
public
AirlayConfig
$
config
$collection
public
ProjectsCollection
$collection
$rabbitmq
public
AMQPStreamConnection
$rabbitmq
$user
public
UserEntity
$user
$collection
protected
mixed
$collection
Methods
__construct()
public
__construct(mixed $collection) : mixed
Parameters
- $collection : mixed
Return values
mixed —createProject()
public
createProject(string $name, string $description, int $number, ObjectId $organizationId) : ProjectEntity
Parameters
- $name : string
- $description : string
- $number : int
- $organizationId : ObjectId
Return values
ProjectEntity —deleteProject()
public
deleteProject(ObjectId $projectId) : void
Parameters
- $projectId : ObjectId
Return values
void —getCollection()
public
getCollection() : mixed
Return values
mixed —getUserProjects()
public
getUserProjects(ObjectId $userId) : array<string|int, mixed>
Parameters
- $userId : ObjectId
Return values
array<string|int, mixed> —hasAccessByUser()
public
hasAccessByUser(ObjectId $projectId, UserEntity $user) : void
Parameters
- $projectId : ObjectId
- $user : UserEntity