This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Components/DependencyInjection/Fixtures/includes/foo.php

35 lines
644 B
PHP
Raw Normal View History

2010-01-04 14:26:20 +00:00
<?php
class FooClass
{
public $bar = null, $initialized = false, $configured = false, $called = false, $arguments = array();
2010-01-04 14:26:20 +00:00
public function __construct($arguments = array())
{
$this->arguments = $arguments;
}
2010-01-04 14:26:20 +00:00
static public function getInstance($arguments = array())
{
$obj = new self($arguments);
$obj->called = true;
2010-01-04 14:26:20 +00:00
return $obj;
}
2010-01-04 14:26:20 +00:00
public function initialize()
{
$this->initialized = true;
}
2010-01-04 14:26:20 +00:00
public function configure()
{
$this->configured = true;
}
2010-01-04 14:26:20 +00:00
public function setBar($value = null)
{
$this->bar = $value;
}
2010-01-04 14:26:20 +00:00
}