Prismic.io PHP kit  3.0.0
Public Member Functions | List of all members
Prismic\FieldForm Class Reference

Public Member Functions

 __construct ($type, $multiple, $defaultValue)
 
 getType ()
 
 getDefaultValue ()
 
 isMultiple ()
 

Detailed Description

Embodies a field of a RESTful form. This is meant for internal use.

Constructor & Destructor Documentation

§ __construct()

Prismic\FieldForm::__construct (   $type,
  $multiple,
  $defaultValue 
)

Constructing a FieldForm.

Parameters
string$typethe type of the field
boolean$multiplecan the parameter be used multiple times
string$defaultValuethe default value

Member Function Documentation

§ getDefaultValue()

Prismic\FieldForm::getDefaultValue ( )

Returns the default value.

Returns
string the default value.

§ getType()

Prismic\FieldForm::getType ( )

Returns the type of the field.

Returns
string the type of the field.

§ isMultiple()

Prismic\FieldForm::isMultiple ( )

Returns whether the parameter can be used multiple times.

Returns
boolean true if the parameter can be used multiple times, false otherwise.

The documentation for this class was generated from the following file: