public function when($condition, $fields)
    {
        $this->getChildren()->mergeSchema([
            $this->normalizeCondition($condition) => $fields,
        ]);

        return $this;
    }
public function when($condition, $fields)
    {
        $this->getChildren()->mergeSchema([
            $this->normalizeCondition($condition) => $fields,
        ]);

        return $this;
    }
public function when ( $ condition , $ fields ) { $ this -> getChildren ( ) -> mergeSchema ( [ $ this -> normalizeCondition ( $ condition ) => $ fields , ] ) ; return $ this ; }
Set condition fields.

@param string $condition
@param array $fields

@return self
Set condition fields .