UpdateEnrollmentDTO
extends AbstractBaseDto
in package
implements
DTOInterface
Table of Contents
Interfaces
Properties
- $courseSectionId : string|null
- $endAt : DateTime|null
- $enrollmentState : string|null
- $limitPrivilegesToCourseSection : bool|null
- $notify : bool|null
- $roleId : string|null
- $startAt : DateTime|null
- $apiPropertyName : string
- The name of the property in the API
Methods
- __construct() : mixed
- BaseDto constructor.
- getCourseSectionId() : string|null
- Get the course section ID
- getEndAt() : string|null
- Get end date
- getEnrollmentState() : string|null
- Get the enrollment state
- getRoleId() : string|null
- Get the role ID
- getStartAt() : string|null
- Get start date
- isLimitPrivilegesToCourseSection() : bool|null
- Get limit privileges to course section flag
- isNotify() : bool|null
- Get notification preference
- setCourseSectionId() : void
- Set the course section ID
- setEndAt() : void
- Set end date
- setEnrollmentState() : void
- Set the enrollment state
- setLimitPrivilegesToCourseSection() : void
- Set limit privileges to course section flag
- setNotify() : void
- Set notification preference
- setRoleId() : void
- Set the role ID
- setStartAt() : void
- Set start date
- toApiArray() : array<string|int, mixed>
- Convert the DTO to an array for API requests
- toArray() : array<string|int, mixed>
- Convert the DTO to an array with proper date formatting
Properties
$courseSectionId
public
string|null
$courseSectionId
= null
$endAt
public
DateTime|null
$endAt
= null
$enrollmentState
public
string|null
$enrollmentState
= null
$limitPrivilegesToCourseSection
public
bool|null
$limitPrivilegesToCourseSection
= null
$notify
public
bool|null
$notify
= null
$roleId
public
string|null
$roleId
= null
$startAt
public
DateTime|null
$startAt
= null
$apiPropertyName
The name of the property in the API
protected
string
$apiPropertyName
= 'enrollment'
Methods
__construct()
BaseDto constructor.
public
__construct(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
Tags
getCourseSectionId()
Get the course section ID
public
getCourseSectionId() : string|null
Return values
string|nullgetEndAt()
Get end date
public
getEndAt() : string|null
Return values
string|nullgetEnrollmentState()
Get the enrollment state
public
getEnrollmentState() : string|null
Return values
string|nullgetRoleId()
Get the role ID
public
getRoleId() : string|null
Return values
string|nullgetStartAt()
Get start date
public
getStartAt() : string|null
Return values
string|nullisLimitPrivilegesToCourseSection()
Get limit privileges to course section flag
public
isLimitPrivilegesToCourseSection() : bool|null
Return values
bool|nullisNotify()
Get notification preference
public
isNotify() : bool|null
Return values
bool|nullsetCourseSectionId()
Set the course section ID
public
setCourseSectionId(string|null $courseSectionId) : void
Parameters
- $courseSectionId : string|null
setEndAt()
Set end date
public
setEndAt(DateTime|string|null $endAt) : void
Parameters
- $endAt : DateTime|string|null
setEnrollmentState()
Set the enrollment state
public
setEnrollmentState(string|null $enrollmentState) : void
Parameters
- $enrollmentState : string|null
setLimitPrivilegesToCourseSection()
Set limit privileges to course section flag
public
setLimitPrivilegesToCourseSection(bool|null $limitPrivilegesToCourseSection) : void
Parameters
- $limitPrivilegesToCourseSection : bool|null
setNotify()
Set notification preference
public
setNotify(bool|null $notify) : void
Parameters
- $notify : bool|null
setRoleId()
Set the role ID
public
setRoleId(string|null $roleId) : void
Parameters
- $roleId : string|null
setStartAt()
Set start date
public
setStartAt(DateTime|string|null $startAt) : void
Parameters
- $startAt : DateTime|string|null
toApiArray()
Convert the DTO to an array for API requests
public
toApiArray() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
Convert the DTO to an array with proper date formatting
public
toArray() : array<string|int, mixed>