<?php
namespace GetOptionKit\ValueType;

abstract class BaseType
{
    public function __construct()
    {
        // code...
    }

    /**
     * Test a value to see if it fit the type
     *
     * @param mixed $value
     */
    abstract public function test($value);
}






<?php
namespace GetOptionKit\ValueType;

abstract class BaseType
{
    public function __construct()
    {
        // code...
    }

    /**
     * Test a value to see if it fit the type
     *
     * @param mixed $value
     */
    abstract public function test($value);

    /**
     * Parse a string value into it's type value
     *
     * @param mixed $value
     */
    abstract public function parse($value);
}






Add abstract parse method to basetype
Add abstract parse method to basetype
