original_string: protected function addToQueue($object, $relations)
  	{
  		if( ! array_key_exists($object->type, self::$loadQueue) )
  		{
  			self::$loadQueue[$object->type] = [];
  		}
  		$relationsKey = base64_encode(json_encode($relations));
  		if( ! array_key_exists($relationsKey, self::$loadQueue[$object->type]) )
  		{
  			self::$loadQueue[$object->type][$relationsKey] = [ 'type' => $object->type, 'ids' => [], 'relations' => $relations ];
  		}
  		self::$loadQueue[$object->type][$relationsKey]['ids'][] = $object->id;
  
  	}
code: protected function addToQueue($object, $relations)
  	{
  		if( ! array_key_exists($object->type, self::$loadQueue) )
  		{
  			self::$loadQueue[$object->type] = [];
  		}
  		$relationsKey = base64_encode(json_encode($relations));
  		if( ! array_key_exists($relationsKey, self::$loadQueue[$object->type]) )
  		{
  			self::$loadQueue[$object->type][$relationsKey] = [ 'type' => $object->type, 'ids' => [], 'relations' => $relations ];
  		}
  		self::$loadQueue[$object->type][$relationsKey]['ids'][] = $object->id;
  
  	}
code_tokens: protected function addToQueue ( $ object , $ relations ) { if ( ! array_key_exists ( $ object -> type , self :: $ loadQueue ) ) { self :: $ loadQueue [ $ object -> type ] = [ ] ; } $ relationsKey = base64_encode ( json_encode ( $ relations ) ) ; if ( ! array_key_exists ( $ relationsKey , self :: $ loadQueue [ $ object -> type ] ) ) { self :: $ loadQueue [ $ object -> type ] [ $ relationsKey ] = [ 'type' => $ object -> type , 'ids' => [ ] , 'relations' => $ relations ] ; } self :: $ loadQueue [ $ object -> type ] [ $ relationsKey ] [ 'ids' ] [ ] = $ object -> id ; }
docstring: Add object to loadQueue if it's specified in relations
  
  @param stdClass 		$object 	object to add
  @param array | int 	$relations 	relations to check
  
  @return void
docstring_tokens: Add object to loadQueue if it s specified in relations