Documentation

PhpDataTypeSpecTrait

Describe what values are allowed to be stored in this field.

This trait is used to track a PHP-style field which is mapped ot a entity-style field. Thus, it has both PHP's @var ($type) and entity's @dataType ($dataType).

Tags
copyright

CiviCRM LLC https://civicrm.org/licensing

Table of Contents

Properties

$type  : array<string|int, string>
The PHP

Methods

getType()  : array<string|int, string>
setType()  : $this

Properties

Methods

getType()

public getType() : array<string|int, string>
Return values
array<string|int, string>

setType()

public setType(string|array<string|int, string> $type) : $this
Parameters
$type : string|array<string|int, string>
Tags
throws
Exception
Return values
$this

        
On this page

Search results