PHP Classes

File: tests/classes/Acme/Components/TestComponentI.php

Recommend this page to a friend!
  Packages of Emmanuel Antico   Injector   tests/classes/Acme/Components/TestComponentI.php   Download  
File: tests/classes/Acme/Components/TestComponentI.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: Injector
Inject dependencies defined in annotation comments
Author: By
Last change:
Date: 12 years ago
Size: 339 bytes
 

 

Contents

Class file image Download
<?php
namespace Acme\Components;

/**
 * @inject.provider Acme\Providers\AllServiceProvider 
 */
class TestComponentI {
    /**
     * @inject.service mail
     */
    private $mail;
    
    /**
     * @inject.service http
     */
    protected $http;
    
    public function getMail() {
        return $this->mail;
    }
    
    public function getHttp() {
        return $this->http;
    }
}