src/ORM/FieldType/DBEnum.php
public function setEnum($enum)
    {
        if (!is_array($enum)) {
            $enum = preg_split(
                '/\s*,\s*/',
                // trim commas only if they are on the right with a newline following it
                ltrim(preg_replace('/,\s*\n\s*$/', '', $enum))
            );
        }
        $this->enum = array_values($enum);
        return $this;
    }
public function setEnum($enum)
    {
        if (!is_array($enum)) {
            $enum = preg_split(
                '/\s*,\s*/',
                // trim commas only if they are on the right with a newline following it
                ltrim(preg_replace('/,\s*\n\s*$/', '', $enum))
            );
        }
        $this->enum = array_values($enum);
        return $this;
    }
public function setEnum ( $ enum ) { if ( ! is_array ( $ enum ) ) { $ enum = preg_split ( '/\s*,\s*/' , // trim commas only if they are on the right with a newline following it ltrim ( preg_replace ( '/,\s*\n\s*$/' , '' , $ enum ) ) ) ; } $ this -> enum = array_values ( $ enum ) ; return $ this ; }
Set enum options

@param string|array $enum
@return $this
Set enum options