* @copyright 2012 - 2023 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License * @link https://git.timshomepage.net/aviat/Query * @version 4.1.0 */ namespace Query; /** * 'Enum' of join types */ enum LikeType: string { case BEFORE = 'before'; case AFTER = 'after'; case BOTH = 'both'; public static function parse(string|self $val): self { if ($val instanceof self) { return $val; } return self::from($val); } }