Skip to content

Commit d437da7

Browse files
committed
Add php_runtime_generation to Environment model
1 parent 2ca0d1f commit d437da7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Models/Environment.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,16 @@ public function getPHPVersion()
683683
: null;
684684
}
685685

686+
/**
687+
* Gets the PHP runtime generation of this environment
688+
*
689+
* @return string
690+
*/
691+
public function getPHPRuntimeGeneration()
692+
{
693+
return $this->settings('php_runtime_generation');
694+
}
695+
686696
/**
687697
* @return UpstreamStatus
688698
*/
@@ -947,6 +957,7 @@ public function serialize()
947957
'initialized' => $this->isInitialized(),
948958
'connection_mode' => $this->get('connection_mode'),
949959
'php_version' => $this->getPHPVersion(),
960+
'php_runtime_generation' => $this->getPHPRuntimeGeneration(),
950961
];
951962
}
952963

0 commit comments

Comments
 (0)