public function build() : ActualField
    {
        $type                 = $this->type->withAll($this->attributes);
        $currentProcessedType = $type->getProcessedPhpType();
        $customerProcessors   = [];

        foreach ($this->customProcessorCallbacks as $callback) {
            /** @var IFieldProcessor $processor */
            $processor = $callback($currentProcessedType, $type, $this->initialValue);

            $customerProcessors[] = $processor;
            $currentProcessedType = $processor->getProcessedType();
        }

        return new ActualField(
            $this->name,
            $this->label,
            $type,
            $customerProcessors,
            $this->initialValue
        );
    }
public function build() : ActualField
    {
        $type                 = $this->type->withAll($this->attributes);
        $currentProcessedType = $type->getProcessedPhpType();
        $customerProcessors   = [];

        foreach ($this->customProcessorCallbacks as $callback) {
            /** @var IFieldProcessor $processor */
            $processor = $callback($currentProcessedType, $type, $this->initialValue);

            $customerProcessors[] = $processor;
            $currentProcessedType = $processor->getProcessedType();
        }

        return new ActualField(
            $this->name,
            $this->label,
            $type,
            $customerProcessors,
            $this->initialValue
        );
    }
public function build ( ) : ActualField { $ type = $ this -> type -> withAll ( $ this -> attributes ) ; $ currentProcessedType = $ type -> getProcessedPhpType ( ) ; $ customerProcessors = [ ] ; foreach ( $ this -> customProcessorCallbacks as $ callback ) { /** @var IFieldProcessor $processor */ $ processor = $ callback ( $ currentProcessedType , $ type , $ this -> initialValue ) ; $ customerProcessors [ ] = $ processor ; $ currentProcessedType = $ processor -> getProcessedType ( ) ; } return new ActualField ( $ this -> name , $ this -> label , $ type , $ customerProcessors , $ this -> initialValue ) ; }
Builds the field.

@return ActualField
Builds the field .