original_string: public static function get($params = array())
  	{
  		$object = new static;
  		$data   = $object->request('GET', $object->getUrl(), $params);
  		$data   = $object->stripResponseData($data);
  
  		// Initialise a collection
  		$collection = self::newCollection();
  
  		if (isset($data[0]) && is_array($data[0])) {
  			// This should be a collection
  			$collection->setItems($data);
  		}
  
  		return $collection;
  	}
code: public static function get($params = array())
  	{
  		$object = new static;
  		$data   = $object->request('GET', $object->getUrl(), $params);
  		$data   = $object->stripResponseData($data);
  
  		// Initialise a collection
  		$collection = self::newCollection();
  
  		if (isset($data[0]) && is_array($data[0])) {
  			// This should be a collection
  			$collection->setItems($data);
  		}
  
  		return $collection;
  	}
code_tokens: public static function get ( $ params = array ( ) ) { $ object = new static ; $ data = $ object -> request ( 'GET' , $ object -> getUrl ( ) , $ params ) ; $ data = $ object -> stripResponseData ( $ data ) ; // Initialise a collection $ collection = self :: newCollection ( ) ; if ( isset ( $ data [ 0 ] ) && is_array ( $ data [ 0 ] ) ) { // This should be a collection $ collection -> setItems ( $ data ) ; } return $ collection ; }
docstring: Get a collection of items
  
  @param  array  $params
  @return Daursu\Xero\BaseModel
docstring_tokens: Get a collection of items