Skip to content

Commit

Permalink
ScriptFactory:: use protected property so subclasses can override, an…
Browse files Browse the repository at this point in the history
…d expose getOpCodes
  • Loading branch information
Thomas Kerin committed Dec 16, 2018
1 parent 7657b69 commit ec24391
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Script/ScriptFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ class ScriptFactory
* @var OutputScriptFactory
*/
private static $outputScriptFactory = null;
private static $opcodes = null;

private static function getOpCodes(): Opcodes
/**
* @var Opcodes|null
*/
protected static $opcodes = null;

public static function getOpCodes(): Opcodes
{
if (null === static::$opcodes) {
static::$opcodes = new Opcodes();
Expand Down

0 comments on commit ec24391

Please sign in to comment.