public function testManger()
 {
     $this->assertInstanceOf('\\HelloWordPl\\SimpleEntityGeneratorBundle\\Lib\\Interfaces\\RenderableInterface', $this->methodSetterInterfaceManager);
     $this->assertInstanceOf('\\HelloWordPl\\SimpleEntityGeneratorBundle\\Lib\\Interfaces\\MethodInterface', $this->methodSetterInterfaceManager);
     $this->assertInstanceOf('\\HelloWordPl\\SimpleEntityGeneratorBundle\\Lib\\Interfaces\\SetterMethodInterface', $this->methodSetterInterfaceManager);
     $this->assertInstanceOf('\\HelloWordPl\\SimpleEntityGeneratorBundle\\Lib\\Items\\MethodManager', $this->methodSetterInterfaceManager);
     $this->assertInstanceOf('\\HelloWordPl\\SimpleEntityGeneratorBundle\\Lib\\Items\\MethodSetterInterfaceManager', $this->methodSetterInterfaceManager);
     $this->assertEquals('setFullName', $this->methodSetterInterfaceManager->getPreparedName());
     $this->assertFalse($this->methodSetterInterfaceManager->canAddTypeHinting());
 }
 /**
  * Generate class components
  * - setters and getters for Class and Interface (optional)
  * - method with prefix is for boolean properties
  *
  * @param \HelloWordPl\SimpleEntityGeneratorBundle\Lib\ClassManager $classManager
  */
 protected function generateAndFillClassMethods(ClassManager $classManager)
 {
     $methodsForClass = new ArrayCollection();
     // fix - jms serializer does not call ClassManager constructor during deserialization
     if (false == $classManager->getProperties() instanceof ArrayCollection) {
         $classManager->setProperties(new ArrayCollection());
     }
     foreach ($classManager->getProperties() as $property) {
         if ($property->isTypeBoolean()) {
             $methodsForClass->add((new MethodGetterBooleanManager($classManager))->setProperty($property));
         }
         $methodSetterManager = new MethodSetterManager($classManager);
         $methodSetterManager->setProperty($property);
         $methodGetterManager = new MethodGetterManager($classManager);
         $methodGetterManager->setProperty($property);
         $methodsForClass->add($methodSetterManager);
         $methodsForClass->add($methodGetterManager);
     }
     $classManager->setMethods($methodsForClass);
     return $classManager;
 }