public function stripResponseData(array $data)
	{
		if (isset($data[self::getEntityName()]) && is_array($data[self::getEntityName()]))
			$data = $data[self::getEntityName()];

		if (isset($data[self::getSingularEntityName()]) && is_array($data[self::getSingularEntityName()]))
			$data = $data[self::getSingularEntityName()];

		return $data;
	}
public function stripResponseData(array $data)
	{
		if (isset($data[self::getEntityName()]) && is_array($data[self::getEntityName()]))
			$data = $data[self::getEntityName()];

		if (isset($data[self::getSingularEntityName()]) && is_array($data[self::getSingularEntityName()]))
			$data = $data[self::getSingularEntityName()];

		return $data;
	}
public function stripResponseData ( array $ data ) { if ( isset ( $ data [ self :: getEntityName ( ) ] ) && is_array ( $ data [ self :: getEntityName ( ) ] ) ) $ data = $ data [ self :: getEntityName ( ) ] ; if ( isset ( $ data [ self :: getSingularEntityName ( ) ] ) && is_array ( $ data [ self :: getSingularEntityName ( ) ] ) ) $ data = $ data [ self :: getSingularEntityName ( ) ] ; return $ data ; }
This function removes all the unecessary data from a response
and leaves us with what we need when trying to populate objects or
collections with data

@param  array $data
@return array
This function removes all the unecessary data from a response and leaves us with what we need when trying to populate objects or collections with data