/** * It creates a new ItemResource object class ir if it has been created * before, it return the previous object * * @access public * @since unknown * @return ItemResource */ public static function newInstance() { if (!self::$instance instanceof self) { self::$instance = new self(); } return self::$instance; }