src/Manager.php
public function returnValue($slug, $a, $b = null)
    {
        $parts = explode(Map::DELIMITER, $slug);
        $feature = array_shift($parts);

        return $this->forFeature($feature)
            ->addValue(implode(Map::DELIMITER, $parts), $a)
            ->defaultValue($b)
            ->execute();
    }
public function returnValue($slug, $a, $b = null)
    {
        $parts = explode(Map::DELIMITER, $slug);
        $feature = array_shift($parts);

        return $this->forFeature($feature)
            ->addValue(implode(Map::DELIMITER, $parts), $a)
            ->defaultValue($b)
            ->execute();
    }
Syntactic sugar for creating simple feature toggles (ternary style).

Uses Builder::addValue

@param string $slug
@param mixed  $a
@param mixed  $b

@return mixed

@see \Zumba\Swivel\ManagerInterface