Jarves\ACLRequest::setTargetType PHP Method

setTargetType() public method

public setTargetType ( null $targetType )
$targetType null
    public function setTargetType($targetType)
    {
        if ($targetType !== ACL::TARGET_TYPE_GROUP && $targetType !== ACL::TARGET_TYPE_USER) {
            throw new \InvalidArgumentException('targetType is not valid. Valid: ACL::TARGET_TYPE_GROUP or ACL::TARGET_TYPE_USER');
        }
        $this->targetType = $targetType;
        return $this;
    }