init() 공개 정적인 메소드

public static init ( )
예제 #1
0
 /** @covers YaLinqo\Utils::init
  */
 function testInit()
 {
     U::init();
 }
예제 #2
0
파일: Linq.php 프로젝트: athari/yalinqo
<?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);
    }
}