init() публичный статический Метод

public static init ( )
Пример #1
0
 /** @covers YaLinqo\Utils::init
  */
 function testInit()
 {
     U::init();
 }
Пример #2
0
<?php

/**
 * Global functions and initialization.
 * @author Alexander Prokhorov
 * @license Simplified BSD
 * @link https://github.com/Athari/YaLinqo YaLinqo on GitHub
 */
\YaLinqo\Functions::init();
\YaLinqo\Utils::init();
if (!function_exists('from')) {
    /**
     * Create Enumerable from an array or any other traversible source.
     * @param array|\Iterator|\IteratorAggregate|\YaLinqo\Enumerable $source
     * @throws \InvalidArgumentException If source is not array or Traversible or Enumerable.
     * @return \YaLinqo\Enumerable
     * @see \YaLinqo\Enumerable::from
     */
    function from($source)
    {
        return \YaLinqo\Enumerable::from($source);
    }
}