Skip to content

Instantly share code, notes, and snippets.

View ppraksa's full-sized avatar
👋

Pawel ppraksa

👋
View GitHub Profile
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Serialize\Serializer;
use Magento\Framework\Serialize\SerializerInterface;
/**
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- Redefine section -->
<xs:redefine schemaLocation="urn:magento:framework:Data/etc/argument/types.xsd">
function Device(power) {
this.power = power;
this.turnPower = function() { this.power = !this.power };
}
Device.prototype.sayHello = function() { this.power ? console.log('hello, the power is on') : ''}
function Computer(proccessor, memory) {
this.proccessor = proccessor;
this.memory = memory;