text: <?php
  /**
   * This file is part of the PPI Framework.
   *
   * @copyright  Copyright (c) 2011-2015 Paul Dragoonis <paul@ppi.io>
   * @license    http://opensource.org/licenses/mit-license.php MIT
   *
   * @link       http://www.ppi.io
   */
  
  namespace PPI\FrameworkTest\ServiceManager\Fixtures;
  
  use stdClass;
  use Zend\ServiceManager\AbstractFactoryInterface;
  use Zend\ServiceManager\MutableCreationOptionsInterface;
  use Zend\ServiceManager\ServiceLocatorInterface;
  
  /**
   * Class AbstractFactoryWithMutableCreationOptions.
   *
   * @author Vítor Brandão <vitor@ppi.io>
   */
  class AbstractFactoryWithMutableCreationOptions implements AbstractFactoryInterface, MutableCreationOptionsInterface
  {
      /**
       * @param \Zend\ServiceManager\ServiceLocatorInterface $serviceLocator
       * @param $name
       * @param $requestedName
       *
       * @return bool
       */
      public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
      {
          return true;
      }
  
      /**
       * @param \Zend\ServiceManager\ServiceLocatorInterface $serviceLocator
       * @param $name
       * @param $requestedName
       *
       * @return \stdClass
       */
      public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
      {
          return new stdClass();
      }
  
      public function setCreationOptions(array $options)
      {
          $this->options = $options;
      }
  }
  