@param $param

@return string|int|float|boolean|null

@throws \Circle\DoctrineRestDriver\Validation\Exceptions\InvalidTypeException
178358
public static function getStringRepresentation($param)
    {
        if (is_int($param) || is_float($param)) return $param;
        if (is_numeric($param))                 return (float)$param;
        if (is_string($param))                  return '\'' . $param . '\'';
        if ($param === true)                    return 'true';
        if ($param === false)                   return 'false';
        if ($param === null)                    return 'null';

        throw new \Circle\DoctrineRestDriver\Validation\Exceptions\InvalidTypeException('string | int | float | bool | null', '$param', $param);
    }
709010
public function get($param)
    {
        return array_key_exists($param, $this->data) ? $this->data[$param] : null;
    }
316330
public function getParamP($param, $bundle = null, $default = null, $namespace = null, $object = false)
    {
        if($bundle == "all") {
            $entities = $this->get('doctrine.orm.entity_manager')->getRepository($this->getBundleName().':Param')->findBy(array(
                'name' => $param,
                'published' => true,
            ));
        } else {
            $entities = $this->get('doctrine.orm.entity_manager')
//                ->getRepository($this->getBundleName().':Param')
                ->getRepository('eDemyMainBundle:Param')
                ->findBy(array(
                    'bundle' => $bundle,
                    'name' => $param,
                    'namespace' => $namespace,
                    'published' => true,
                ));
        }
//        dump($this->getBundleName());
        if (!$entities) {
            if ($default != null) {
                $value = $default;
            } else {
                $value = $param;
            }
//            dump($param . ' ' . $default . ' ' . $value);
        } else {
            if(count($entities) == 1) {
                if($entities[0]->getLocale() == null) {
                    $entities[0]->setTranslatableLocale('es');
                    $this->get('doctrine.orm.entity_manager')->refresh($entities[0]);
                }
                $value = $entities[0]->getValue();
                if($object) return $entities[0];
            } else {
                $value = $entities;
            }
        }

//        if($bundle == null) dump($this->class);|
        return $value;
    }
1193401
public function load($param = null)
    {

        $configSet = $this->_getConfigSet();

        if (0 === count($configSet)) {
            // set default config set for the default execution
            $configSet = [
                realpath(
                    "{$this->config_path}/{$this->get(self::HIERARCHY_PLACEHOLDER_INDEX)}"
                    . (string) self::CONFIG_DELIMITER
                    . (string) self::FILE_EXTENSION
                )
            ];
            $this->set('config_set', $configSet);
        }

        return $this->populateEngine(
            $this->checkConfigForDefaultConfig($configSet)
        );
    }
823749
protected function getClassMethodReturnType(Param $param, array $uses)
    {
        $type = null;

        if ($param->type instanceof Identifier || $param->type instanceof Name) {
            $type = $param->type->toString();
        } elseif ($param->type instanceof NullableType && isset($param->type->type->name)) {
            $type = $param->type->type->name;
        } elseif ($param->type === null) {
            $type = null;
        } else {
            throw new RuntimeException(sprintf('Invalid parameter type: %s', gettype($param->type)));
        }

        if (isset($uses[$type])) {
            $type = $uses[$type];
        }

        $type = strpos($type, '\\') === 0 ? substr($type, 1) : $type;

        if ($param->type instanceof NullableType) {
            $type = [$type, 'null'];

            return $type;
        }

        // Process default data type e.g. function fnc(string $value = null)
        if ($param->default !== null && isset($param->default->name)) {
            /** @var Name $defaultName */
            $defaultName = $param->default->name;
            if ($defaultName->parts[0] === 'null' && $type !== null) {
                $type = [$type, 'null'];
            }
        }

        return $type;
    }
325471
protected function convertParam($platform, $param, $type = null)
    {
        if (is_object($param)) {
            if (!method_exists($param, '__toString')) {
                if ($param instanceof DateTimeInterface) {
                    $param = $param->format('Y-m-d H:i:s');
                } elseif (Type::hasType($type)) {
                    $type  = Type::getType($type);
                    $param = $type->convertToDatabaseValue($param, $platform);
                } else {
                    throw new Exception('Given query param is an instance of ' . get_class($param) . ' and could not be converted to a string');
                }
            }
        } elseif (is_array($param)) {
            if ($this->isNestedArray($param)) {
                $param = json_encode($param, JSON_UNESCAPED_UNICODE);
            } else {
                $param = implode(
                    ', ',
                    array_map(
                        function ($part) {
                            return '"' . (string) $part . '"';
                        },
                        $param
                    )
                );

                return '(' . $param . ')';
            }
        } else {
            $param = e($param);
        }

        return '"' . (string) $param . '"';
    }
1051436
public static function title($param = null)
    {

        if (is_integer($param)) {
            $param = array(
                'amount' => $param
            );
        }

        if (!is_array($param)) {
            $param = array();
        }

        $defParam = array(
            'amount' => 30,
            'what' => 'bytes',
            'start' => 'yes',
            'lang' => 'en'
        );

        $param = array_merge($defParam, $param);

        $json = Utils::getJSON('http://json-lipsum.appspot.com/?' . http_build_query($param));

        if (isset($json->lipsum)) {
            return $json->lipsum;
        } else {
            return 'Error Lorem ipsum dolor sit amet, consectetur adipiscing elit.';
        }

    }
1129567
public function getParam(string $param)
    {
        if (! empty($this->match['params'][$param])) {
            return $this->match['params'][$param];
        }
    }
40893
private function handleThridParameter($param) 
    {
        $result = '';
        if(is_array($param)) {
            $result = '(';
            foreach($param as $v) {
                $result .= $this->quoteValue($v) . ', ';
            }
            $result = trim($result, ', ') . ')';
        } else {
            $result = $this->quoteValue($param);
        }
        
        return $result;
    }
148779
protected function convert($num)
    {
        if ($num instanceof NumericTypeInterface) {
            return $num;
        }
        if (is_numeric($num)) {
            return $this->calcEngine->convertNumeric($num);
        }

        $type = (is_object($num) ? get_class($num) : gettype($num));
        throw new \BadMethodCallException('No solution for unknown type: ' . $type);
    }
127387
protected static function getValue($param)
    {
        $data = explode(':', $param);

        $result = ['rule' => trim($data[0])];

        $result['value'] = count($data) > 1 ? $data[1] : null;

        return $result;
    }
565636
function DBParameter($param)
	{
		if (empty($this->settings[$param])) return false;
		$sql = $this->settings[$param][1];
		return $this->_DBParameter($sql);
	}
1309986
public function get($param = '') {
        $this->validate();

        if ($param) {
            if (array_key_exists($param, $this->config)) {
                return $this->config[$param];
            }
            else {
                throw new OptionConfigException('option param not valid: ' . $param);
            }
        }

        return $this->config;
    }
59770
public function get_parameters($param=null)
    {
        $params = $this->params;
        $params['MAILBOX'] = $this->mailbox;
        $params['ORDER']   = $this->order;

        if ($param !== null) {
            return $params[$param];
        }

        return $params;
    }
524353
private static function formatParameter($param): string
	{
		if (is_int($param) || is_float($param)) {
			return (string) $param;

		} elseif (is_string($param)) {
			return "'" . addslashes($param) . "'";

		} elseif (is_null($param)) {
			return "NULL";

		} elseif (is_bool($param)) {
			return $param ? "TRUE" : "FALSE";

		} elseif (is_array($param)) {
			$formatted = [];
			foreach ($param as $value) {
				$formatted[] = self::formatParameter($value);
			}
			return implode(', ', $formatted);

		} elseif ($param instanceof \Datetime) {
			return "'" . $param->format('Y-m-d H:i:s') . "'";

		} elseif (is_object($param)) {
			return get_class($param) . (method_exists($param, 'getId') ? '(' . $param->getId() . ')' : '');

		} else {
			return @"'$param'"; // @ - conversion of something to string
		}
	}
163255
public function getSessionObject( $param ) {

		$data = Yii::$app->session->get( $param );

		if( isset( $data ) ) {

			$object = unserialize( base64_decode( $data ) );

			return $object;
		}

		return null;
	}
55829
private static Object getParam(final Object param) {
		final StringBuilder sb = new StringBuilder();
		if(param instanceof String){
			sb.append("'");
			sb.append((String)param);
			sb.append("'");
		}
		else if(param instanceof Boolean){
			sb.append(String.valueOf((Boolean)param));			
		}
        else if(param instanceof Integer){
            sb.append(String.valueOf((Integer)param));
        }
        else if(param instanceof DBRegExp){
            sb.append('/');
            sb.append(((DBRegExp) param).toString());
            sb.append('/');
        }
		
		return sb.toString();
	}