public function mapsForm($index)
    {
        if (!isset($this->mapsForm[$index])) {
            throw new OutOfBoundsException(sprintf('The index %s is not within the violation path', $index));
        }

        return $this->mapsForm[$index];
    }
public function mapsForm($index)
    {
        if (!isset($this->mapsForm[$index])) {
            throw new OutOfBoundsException(sprintf('The index %s is not within the violation path', $index));
        }

        return $this->mapsForm[$index];
    }
public function mapsForm ( $ index ) { if ( ! isset ( $ this -> mapsForm [ $ index ] ) ) { throw new OutOfBoundsException ( sprintf ( 'The index %s is not within the violation path' , $ index ) ) ; } return $ this -> mapsForm [ $ index ] ; }
Returns whether an element maps directly to a form.

Consider the following violation path:

children[address].children[office].data.street

In this example, "address" and "office" map to forms, while
"street does not.

@param int $index The element index

@return bool Whether the element maps to a form

@throws OutOfBoundsException if the offset is invalid
Returns whether an element maps directly to a form .