1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace Fgm\ComposerCheck;
- /**
- * Class LockLoader loads a composer.lock file.
- */
- abstract class LoaderBase implements LoaderInterface {
- protected $contents;
- protected $file;
- protected $platform = [];
- protected $dev = [];
- protected $run = [];
- /**
- * {@inheritdoc}
- */
- public function getDev() {
- return $this->dev;
- }
- /**
- * {@inheritdoc}
- */
- public function getRun() {
- return $this->run;
- }
- /**
- * {@inheritdoc}
- */
- public function load(string $file = NULL) {
- $this->contents = json_decode(file_get_contents($this->file), TRUE);
- }
- }
|