public function resolve($pattern, array $conditions = [])
    {
        $this
            ->setRegrex($pattern)
            ->extractParameters($conditions)
            ->replaceMocksWithConditions()
            ->generateGuid();

        return $this;
    }
public function resolve($pattern, array $conditions = [])
    {
        $this
            ->setRegrex($pattern)
            ->extractParameters($conditions)
            ->replaceMocksWithConditions()
            ->generateGuid();

        return $this;
    }
public function resolve ( $ pattern , array $ conditions = [ ] ) { $ this -> setRegrex ( $ pattern ) -> extractParameters ( $ conditions ) -> replaceMocksWithConditions ( ) -> generateGuid ( ) ; return $ this ; }
Resolves rule pattern, regrex and parameters.

@param  string $pattern
@param  array $conditions

@return self
Resolves rule pattern regrex and parameters .