public function testManger()
 {
     $this->assertInstanceOf('\\HelloWordPl\\SimpleEntityGeneratorBundle\\Lib\\Interfaces\\RenderableInterface', $this->methodGetterInterfaceManager);
     $this->assertInstanceOf('\\HelloWordPl\\SimpleEntityGeneratorBundle\\Lib\\Interfaces\\MethodInterface', $this->methodGetterInterfaceManager);
     $this->assertInstanceOf('\\HelloWordPl\\SimpleEntityGeneratorBundle\\Lib\\Items\\MethodManager', $this->methodGetterInterfaceManager);
     $this->assertInstanceOf('\\HelloWordPl\\SimpleEntityGeneratorBundle\\Lib\\Items\\MethodGetterInterfaceManager', $this->methodGetterInterfaceManager);
     $this->assertEquals('getFullName', $this->methodGetterInterfaceManager->getPreparedName());
 }
 /**
  * Generate methods for interface
  *
  * @param InterfaceManager $interface
  * @return ArrayCollection
  */
 protected function generateAndFillInterfaceMethods(InterfaceManager $interface)
 {
     $methodsForInterface = new ArrayCollection();
     $classManager = $interface->getClassManager();
     foreach ($classManager->getProperties() as $property) {
         if ($property->isTypeBoolean()) {
             $methodsForInterface->add((new MethodGetterBooleanInterfaceManager($classManager))->setProperty($property));
         }
         $methodSetterInterfaceManager = new MethodSetterInterfaceManager($classManager);
         $methodSetterInterfaceManager->setProperty($property);
         $methodGetterInterfaceManager = new MethodGetterInterfaceManager($classManager);
         $methodGetterInterfaceManager->setProperty($property);
         $methodsForInterface->add($methodSetterInterfaceManager);
         $methodsForInterface->add($methodGetterInterfaceManager);
     }
     $interface->setMethods($methodsForInterface);
     return $interface;
 }