PHP Classes

File: vendor/hamcrest/hamcrest-php/generator/StaticMethodFile.php

Recommend this page to a friend!
  Classes of Renato De Oliveira Lucena  >  PHP Pokemon Script  >  vendor/hamcrest/hamcrest-php/generator/StaticMethodFile.php  >  Download  
File: vendor/hamcrest/hamcrest-php/generator/StaticMethodFile.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Pokemon Script
Provides an API to manage a database of Pokemons
Author: By
Last change:
Date: 2 years ago
Size: 773 bytes
 

 

Contents

Class file image Download
<?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');
    }
}


For more information send a message to info at phpclasses dot org.