for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverStripe\UserForms\FormField;
/**
* Represents a page step in a form, which may contain form fields or other groups
*/
class UserFormsStepField extends UserFormsCompositeField
{
private static $casting = [
$casting
This check marks private properties in classes that are never used. Those properties can be removed.
'StepNumber' => 'Int'
];
* Numeric index (1 based) of this step
*
* Null if unassigned
* @var int|null
protected $number = null;
public function FieldHolder($properties = [])
return $this->Field($properties);
}
* Get the step number
* @return int|null
public function getStepNumber()
return $this->number;
* Re-assign this step to another number
* @param type $number
* @return $this
public function setStepNumber($number)
$this->number = $number;
$number
object<SilverStripe\UserForms\FormField\type>
integer|null
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
return $this;