1<?php declare(strict_types=1); 2 3namespace App\Tests\Unit\Container; 4 5/** 6 * Mock service class for testing container. 7 */ 8class MockService 9{ 10 private $dependency; 11 private $property; 12 13 public function __construct(MockDependency $dependency) 14 { 15 $this->dependency = $dependency; 16 } 17 18 public function getDependency(): MockDependency 19 { 20 return $this->dependency; 21 } 22 23 public function setProperty(string $value): void 24 { 25 $this->property = $value; 26 } 27 28 public function getProperty(): string 29 { 30 return $this->property; 31 } 32} 33