public function getPlanItem($code = null, $itemCode = null) {
		$items = $this->getPlanItems($code);
		if (!$itemCode && count($items) > 1) {
			throw new CheddarGetter_Response_Exception("This plan contains more than one item so you need to provide the code for the item you wish to get", CheddarGetter_Response_Exception::USAGE_INVALID);
		}
		if (!$itemCode) {
			return current($items);
		}
		return $items[$itemCode];
	}
public function getPlanItem($code = null, $itemCode = null) {
		$items = $this->getPlanItems($code);
		if (!$itemCode && count($items) > 1) {
			throw new CheddarGetter_Response_Exception("This plan contains more than one item so you need to provide the code for the item you wish to get", CheddarGetter_Response_Exception::USAGE_INVALID);
		}
		if (!$itemCode) {
			return current($items);
		}
		return $items[$itemCode];
	}
public function getPlanItem ( $ code = null , $ itemCode = null ) { $ items = $ this -> getPlanItems ( $ code ) ; if ( ! $ itemCode && count ( $ items ) > 1 ) { throw new CheddarGetter_Response_Exception ( "This plan contains more than one item so you need to provide the code for the item you wish to get" , CheddarGetter_Response_Exception :: USAGE_INVALID ) ; } if ( ! $ itemCode ) { return current ( $ items ) ; } return $ items [ $ itemCode ] ; }
Get an array representation of a single plan item node

@param $code string your code for the plan - required if more than one plan is in the response
@param $itemCode your code for the item - required if more than one item is in the response
@throws CheddarGetter_Response_Exception if the response type is incompatible or if a $code is not provided and the response contains more than one plan
@return array
Get an array representation of a single plan item node