LazyRecord\Schema\DeclareColumn::getValidValues PHP Method

getValidValues() public method

For an existing record, we might need the record data to return specified valid values.
public getValidValues ( $record = null, $args = null )
    public function getValidValues($record = null, $args = null)
    {
        if ($validValues = $this->get('validValues')) {
            return Utils::evaluate($validValues, array($record, $args));
        } elseif ($builder = $this->get('validValueBuilder')) {
            return Utils::evaluate($builder, array($record, $args));
        }
    }