protected function getObjectFormStage() : IForm
    {
        $objectValidationCallbacks = $this->objectValidationCallbacks;

        if ($objectValidationCallbacks) {
            /** @var callable $validationCallback */
            $validationCallback = array_shift($objectValidationCallbacks);

            foreach ($objectValidationCallbacks as $otherCallback) {
                $validationCallback = function ($object) use ($validationCallback, $otherCallback) {
                    return $validationCallback($object) && $otherCallback($object);
                };
            }
        } else {
            $validationCallback = null;
        }

        return ObjectForm::build($this->dataSource, $validationCallback);
    }
protected function getObjectFormStage() : IForm
    {
        $objectValidationCallbacks = $this->objectValidationCallbacks;

        if ($objectValidationCallbacks) {
            /** @var callable $validationCallback */
            $validationCallback = array_shift($objectValidationCallbacks);

            foreach ($objectValidationCallbacks as $otherCallback) {
                $validationCallback = function ($object) use ($validationCallback, $otherCallback) {
                    return $validationCallback($object) && $otherCallback($object);
                };
            }
        } else {
            $validationCallback = null;
        }

        return ObjectForm::build($this->dataSource, $validationCallback);
    }
protected function getObjectFormStage ( ) : IForm { $ objectValidationCallbacks = $ this -> objectValidationCallbacks ; if ( $ objectValidationCallbacks ) { /** @var callable $validationCallback */ $ validationCallback = array_shift ( $ objectValidationCallbacks ) ; foreach ( $ objectValidationCallbacks as $ otherCallback ) { $ validationCallback = function ( $ object ) use ( $ validationCallback , $ otherCallback ) { return $ validationCallback ( $ object ) && $ otherCallback ( $ object ) ; } ; } } else { $ validationCallback = null ; } return ObjectForm :: build ( $ this -> dataSource , $ validationCallback ) ; }
Gets the first stage of the form wherein the object
from the data source is loaded.

@return IForm
Gets the first stage of the form wherein the object from the data source is loaded .