PHP 8.2.30
Preview: StaticMethodFile.php Size: 773 B
/home/byroehnu/easetack.com/vendor/hamcrest/hamcrest-php/generator/StaticMethodFile.php

<?php

/*
 Copyright (c) 2009 hamcrest.org
 */

class StaticMethodFile extends FactoryFile
{
    /**
     * @var string containing method definitions
     */
    private $methods;

    public function __construct($file)
    {
        parent::__construct($file, '    ');
        $this->methods = '';
    }

    public function addCall(FactoryCall $call)
    {
        $this->methods .= PHP_EOL . $this->generateFactoryCall($call);
    }

    public function getDeclarationModifiers()
    {
        return 'public static ';
    }

    public function build()
    {
        $this->addFileHeader();
        $this->addPart('matchers_imports');
        $this->addPart('matchers_header');
        $this->addCode($this->methods);
        $this->addPart('matchers_footer');
    }
}

Directory Contents

Dirs: 1 × Files: 9

Name Size Perms Modified Actions
parts DIR
- drwxrwxrwx 2025-05-16 16:14:40
Edit Download
611 B lrw-rw-rw- 2020-07-09 08:09:16
Edit Download
1.35 KB lrw-rw-rw- 2020-07-09 08:09:16
Edit Download
2.95 KB lrw-rw-rw- 2020-07-09 08:09:16
Edit Download
2.93 KB lrw-rw-rw- 2020-07-09 08:09:16
Edit Download
5.51 KB lrw-rw-rw- 2020-07-09 08:09:16
Edit Download
3.46 KB lrw-rw-rw- 2020-07-09 08:09:16
Edit Download
930 B lrw-rw-rw- 2020-07-09 08:09:16
Edit Download
1.06 KB lrw-rw-rw- 2020-07-09 08:09:16
Edit Download
773 B lrw-rw-rw- 2020-07-09 08:09:16
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).