Get data

@param  mixed $value
@return array
423473
public function get($value = null) {

        $data = $this->collection();

        if(is_array($value)) {

            $args = [];

            foreach($value as $name) {

                if(isset($data[$name])) {

                    $args[$name] = $data[$name];
                }
            }

            return $args;

        } else {

            if(isset($data[$value])) {
                
                return $data[$value];

            } else {

                // Get Variables
                if(isset($data['var'][$value])) {

                    return $data['var'][$value];
                }

                // Get library
                if(isset($data['lib'][$value])) {

                    return $data['lib'][$value];
                }
            }
        }
    }
92347
public function getAttributesFromString($value)
    {
        if (empty($value) === true) {
            return [];
        }

        $repository = $this->config->load($value, $this->type);

        return $repository->getArray();
    }
479281
protected function valueRetriever($value)
    {
        if ($this->useAsCallable($value)) {
            return $value;
        }

        return function ($item) use ($value) {

            return ArrayHelper::dataGet($item, $value);
        };
    }
1098392
public function filter($value)
    {
        return in_array($value, $this->getList(), $this->getStrict()) ? $value : null;
    }
1253403
public function getCriteria(string $value): array
    {
        if ('' === trim($value)) {
            return [];
        }

        $fields = $this->getFields();
        if (empty($fields)) {
            return [];
        }

        $result = [];
        foreach ($fields as $field) {
            $criteria = $this->getFieldCriteria($field, $value);
            if (empty($criteria)) {
                continue;
            }

            $result[$field][] = $criteria;
        }

        return $result;
    }
347890
private function getValue($value)
    {
        switch ($this->attributes['type']) {
            case 'int':
            case 'integer':
                return (int) $value;
            case 'real':
            case 'float':
            case 'double':
                return (float) $value;
            case 'bool':
            case 'boolean':
                return (bool) $value;
            case 'collection':
                return new Collection(json_decode($value, true));
            case 'object':
                return json_decode($value);
            case 'array':
                return json_decode($value, true);
            default:
                return $value;
        }
    }
1010626
public function extract($value)
    {
        if (!$value instanceof TaxedPrice) {
            throw new \InvalidArgumentException(sprintf(
                '$value expected type SCL\Currency\TaxedPrice, got "%s"',
                is_object($value) ? get_class($value) : gettype($value)
            ));
        }

        return [
            'amount' => $value->getAmount()->getValue(),
            'tax'    => $value->getTax()->getValue(),
        ];
    }
1163366
protected function getPossibleTypes($value): array
    {
        $type = $this->getTypeOf($value);

        switch ($type) {
            case 'boolean':
            case 'integer':
            case 'float':
            case 'string':
                return $this->getPossibleScalarTypes($value);
            case 'array':
                return $this->getPossibleArrayTypes($value);
            case 'assoc':
                return $this->getPossibleAssocTypes($value);
            case 'object':
                return $this->getPossibleObjectTypes($value);
            case 'resource':
            default:
                return array_intersect($this->types, [$type]);
        }
    }
714736
protected static function getArrayIfJSON($value)
    {
        if (is_array($value)) {
            return $value;
        } else {
            $toArray = json_decode($value, true);

            if (json_last_error() === JSON_ERROR_NONE) {
                return $toArray;
            } else {
                return $value;
            }
        }
    }
1250775
public function get($value)
    {
        if (!isset($this->get[$value])) {
            return false;
        } else {
            return $this->get[$value];
        }
    }
355307
public static function get( $name = '', $value = '' ) {

		if ( ! empty( $value ) ) {
			$_GET[ $name ] = $value;
		}

		if ( empty( $name ) ) {
			return $_GET;
		} else {
			return ( isset( $_GET[ $name ] ) ) ? $_GET[ $name ] : NULL;
		}

	}
27395
protected function unserializeData($value)
    {
        if ($value === null || !is_array($value)) {
            return $value;
        }

        if (isset($value[self::MAP_TYPE]) && !isset($value[self::CLASS_IDENTIFIER_KEY])) {
            $value = $value[self::SCALAR_VALUE];

            return $this->unserializeData($value);
        }

        if (isset($value[self::SCALAR_TYPE])) {
            return $this->getScalarValue($value);
        }

        if (isset($value[self::CLASS_PARENT_KEY]) && 0 === strcmp($value[self::CLASS_PARENT_KEY], 'SplFixedArray')) {
            return SplFixedArraySerializer::unserialize($this, $value[self::CLASS_IDENTIFIER_KEY], $value);
        }

        if (isset($value[self::CLASS_IDENTIFIER_KEY])) {
            return $this->unserializeObject($value);
        }

        return \array_map([$this, __FUNCTION__], $value);
    }
698581
public static function convertToDb($value)
    {
        if (!is_array($value)) {
            return [];
        }

        $elements = [];
        foreach ($value as $translatable) {
            $elements[] = TranslatableType::convertToDb($translatable);
        }

        return $elements;
    }
1171794
public function unserialize($value)
    {
        if (\is_array($value) && isset($value[self::SCALAR_TYPE])) {
            return $this->unserializeData($value);
        }

        $this->reset();

        return $this->unserializeData($this->serializationStrategy->unserialize($value));
    }
707965
public function get($value)
    {
        $id = is_object($value) ? spl_object_hash($value) : $value;
        if (isset($this->_data[$id])) {
            return $this->_data[$id];
        }
        throw new ORMException("No collected data associated to the key.");
    }
120865
protected function serializeValue($value)
    {
        if (is_string($value)) {
            return $value;
        }
        if (is_object($value) || is_array($value)) {
            return json_encode($value);
        }
    }
781793
protected function getRealValues(array $values, $value = null)
    {
        $value = $this->getCallableValue($value);

        foreach ($values as &$val) {
            if (\is_object($val) && \is_callable($value)) {
                $val = \call_user_func($value, $val);
            }
        }

        return $values;
    }