Skip to content

Commit

Permalink
Add Models
Browse files Browse the repository at this point in the history
  • Loading branch information
kamshory committed Oct 5, 2023
1 parent 131b10b commit 8c8ab8e
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 0 deletions.
48 changes: 48 additions & 0 deletions inc.lib/classes/MusicXML/Model/ForPart.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?php

namespace MusicXML\Model;

use MusicXML\MusicXMLWriter;

/**
* ForPart
* @Xml
* @Referece https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/for-part/
* @Data
*/
class ForPart extends MusicXMLWriter
{
/**
* ID
*
* @Attribute
* @var string
*/
public $id;

/**
* Number
*
* @Attribute
* @var integer
*/
public $number;

/**
* Part clef
*
* @PropertyElement
* @var PartClef
*/
public $partClef;

/**
* Part transpose
*
* @PropertyElement(name="part-transpose")
* @var PartTranspose
*/
public $partTranspose;


}
38 changes: 38 additions & 0 deletions inc.lib/classes/MusicXML/Model/PartClef.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

namespace MusicXML\Model;

use MusicXML\MusicXMLWriter;

/**
* PartClef
* @Xml
* @Reference https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/part-clef/
* @Data
*/
class PartClef extends MusicXMLWriter
{
/**
* Sign
*
* @PropertyElement
* @var string
*/
public $sign;

/**
* Line
*
* @PropertyElement
* @var integer
*/
public $line;

/**
* Clef octave change
*
* @PropertyElement(name="clef-octave-change")
* @var string
*/
public $clefOctaveChange;
}
42 changes: 42 additions & 0 deletions inc.lib/classes/MusicXML/Model/PartTranspose.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

namespace MusicXML\Model;

use MusicXML\MusicXMLWriter;

/**
* PartTranspose
* @Xml
* @Reference https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/part-transpose/
* @Data
*/
class PartTranspose extends MusicXMLWriter
{
/**
* Diatonic
* @PropertyElement
* @var string
*/
public $diatonic;

/**
* Chromatic
* @PropertyElement
* @var string
*/
public $chromatic;

/**
* Octave change
* @PropertyElement(name="octave-change")
* @var string
*/
public $octaveChange;

/**
* Double
* @PropertyElement(name="double")
* @var string
*/
public $double;
}

0 comments on commit 8c8ab8e

Please sign in to comment.