<?php

namespace SilverStripe\Forms\Tests;

class SegmentFieldTestModifier extends AbstractSegmentFieldModifier
{
    /**
     * @inheritdoc
     *
     * @param string $value
     *
     * @return string
     */
    public function getSuggestion($value) {
        return strtoupper($value);
    }

    /**
     * @inheritdoc
     *
     * @param string $value
     *
     * @return string
     */
    public function getPreview($value) {
        return strtolower($value);
    }
}

<?php

namespace SilverStripe\Forms\Tests;

use SilverStripe\Forms\SegmentFieldModifier\AbstractSegmentFieldModifier;

class SegmentFieldTestModifier extends AbstractSegmentFieldModifier
{
    /**
     * @inheritdoc
     *
     * @param string $value
     *
     * @return string
     */
    public function getSuggestion($value) {
        return strtoupper($value);
    }

    /**
     * @inheritdoc
     *
     * @param string $value
     *
     * @return string
     */
    public function getPreview($value) {
        return strtolower($value);
    }
}

FIX Add namespace import for stub modifier
FIX Add namespace import for stub modifier
