src/Axolotl/Collection.php
protected function new_from_trusted( array $elements, $type = null ) {
		$collection = new static( null !== $type ? $type : $this->get_type() );
		$collection->set_from_trusted( $elements );

		return $collection;
	}
protected function new_from_trusted( array $elements, $type = null ) {
		$collection = new static( null !== $type ? $type : $this->get_type() );
		$collection->set_from_trusted( $elements );

		return $collection;
	}
protected function new_from_trusted ( array $ elements , $ type = null ) { $ collection = new static ( null !== $ type ? $ type : $ this -> get_type ( ) ) ; $ collection -> set_from_trusted ( $ elements ) ; return $ collection ; }
Creates a new instance of the Collection
from a trusted set of elements.

@param array      $elements Array of elements to pass into new collection.
@param null|mixed $type

@return static
Creates a new instance of the Collection from a trusted set of elements .