Copied!

SegmentationServiceDecorator

SegmentationServiceDecorator.php : 19

Properties

protected $innerService

SegmentationServiceDecorator.php : 21
protected SegmentationServiceInterface $innerService

Methods

public__construct()

SegmentationServiceDecorator.php : 23
public __construct(SegmentationServiceInterface $innerService)

Parameters

Name Type Default value Description
$innerService SegmentationServiceInterface - -

publicassignUserToSegment()

SegmentationServiceDecorator.php : 103
public assignUserToSegment(User $user, Segment $segment) : void

Parameters

Name Type Default value Description
$user User - -
$segment Segment - -

publiccreateSegment()

SegmentationServiceDecorator.php : 38
public createSegment(SegmentCreateStruct $createStruct) : Segment

Parameters

Name Type Default value Description
$createStruct SegmentCreateStruct - -

Return values

Segment

publiccreateSegmentGroup()

SegmentationServiceDecorator.php : 68
public createSegmentGroup(SegmentGroupCreateStruct $createStruct) : SegmentGroup

Parameters

Name Type Default value Description
$createStruct SegmentGroupCreateStruct - -

Return values

SegmentGroup

publicisUserAssignedToSegment()

SegmentationServiceDecorator.php : 98
public isUserAssignedToSegment(User $user, Segment $segment) : bool

Parameters

Name Type Default value Description
$user User - -
$segment Segment - -

Return values

bool

publicloadSegment()

SegmentationServiceDecorator.php : 28
public loadSegment(int $segmentId) : Segment

Parameters

Name Type Default value Description
$segmentId int - -

Return values

Segment

publicloadSegmentByIdentifier()

SegmentationServiceDecorator.php : 33
public loadSegmentByIdentifier(string $identifier) : Segment

Parameters

Name Type Default value Description
$identifier string - -

Return values

Segment

publicloadSegmentGroup()

SegmentationServiceDecorator.php : 58
public loadSegmentGroup(int $segmentGroupId) : SegmentGroup

Parameters

Name Type Default value Description
$segmentGroupId int - -

Return values

SegmentGroup

publicloadSegmentGroupByIdentifier()

SegmentationServiceDecorator.php : 63
public loadSegmentGroupByIdentifier(string $identifier) : SegmentGroup

Parameters

Name Type Default value Description
$identifier string - -

Return values

SegmentGroup

publicloadSegmentGroups()

SegmentationServiceDecorator.php : 83
public loadSegmentGroups() : array<string|int, SegmentGroup>

Return values

array<string|int, SegmentGroup>

publicloadSegmentsAssignedToCurrentUser()

SegmentationServiceDecorator.php : 93
public loadSegmentsAssignedToCurrentUser() : array<string|int, Segment>

Return values

array<string|int, Segment>

publicloadSegmentsAssignedToGroup()

SegmentationServiceDecorator.php : 53
public loadSegmentsAssignedToGroup(SegmentGroup $segmentGroup) : array<string|int, Segment>

Parameters

Name Type Default value Description
$segmentGroup SegmentGroup - -

Return values

array<string|int, Segment>

publicloadSegmentsAssignedToUser()

SegmentationServiceDecorator.php : 88
public loadSegmentsAssignedToUser(User $user) : array<string|int, Segment>

Parameters

Name Type Default value Description
$user User - -

Return values

array<string|int, Segment>

publicremoveSegment()

SegmentationServiceDecorator.php : 48
public removeSegment(Segment $segment) : void

Parameters

Name Type Default value Description
$segment Segment - -

publicremoveSegmentGroup()

SegmentationServiceDecorator.php : 78
public removeSegmentGroup(SegmentGroup $segmentGroup) : void

Parameters

Name Type Default value Description
$segmentGroup SegmentGroup - -

publicunassignUserFromSegment()

SegmentationServiceDecorator.php : 108
public unassignUserFromSegment(User $user, Segment $segment) : void

Parameters

Name Type Default value Description
$user User - -
$segment Segment - -

publicupdateSegment()

SegmentationServiceDecorator.php : 43
public updateSegment(mixed $segment, SegmentUpdateStruct $updateStruct) : Segment

Parameters

Name Type Default value Description
$segment mixed - -
$updateStruct SegmentUpdateStruct - -

Return values

Segment

publicupdateSegmentGroup()

SegmentationServiceDecorator.php : 73
public updateSegmentGroup(mixed $segmentGroup, SegmentGroupUpdateStruct $updateStruct) : SegmentGroup

Parameters

Name Type Default value Description
$segmentGroup mixed - -
$updateStruct SegmentGroupUpdateStruct - -

Return values

SegmentGroup