<NME> RepositoryA.php
<BEF> <?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace ZendTest\Code\Scanner\TestAsset\MapperExample;

class RepositoryA
{

    protected $mapper = null;

    public function __construct()
    {
    }

    public function setMapper(Mapper $mapper)
    {
        $this->mapper = $mapper;
    }

    public function find(/* $entityCriterion */)
    {
        // so something with criterion
        /*
        $data = $mapper->findByCriterion($entityCriterion);
        $entity = new EntityA();
        populate($entity);
        return $entity;
        */
        return new EntityA;
    }

    public function __toString()
    {
        return 'I am a ' . get_class($this) . ' object (hash ' . spl_object_hash($this) . '), using this mapper object ' . PHP_EOL . '    ' . $this->mapper;
    }

}

<MSG> Merge branch 'hotfix/46' into develop

Forward port #46

<DFF> @@ -37,7 +37,7 @@ class RepositoryA
 
     public function __toString()
     {
-        return 'I am a ' . get_class($this) . ' object (hash ' . spl_object_hash($this) . '), using this mapper object ' . PHP_EOL . '    ' . $this->mapper;
+        return 'I am a ' . get_class($this) . ' object (hash ' . spl_object_hash($this) . '), using this mapper object ' . "\n" . '    ' . $this->mapper;
     }
 
 }

Merge branch 'hotfix/46' into develop