![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/framework/Code/Generator/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\Framework\Code\Generator; /** * Interface \Magento\Framework\Code\Generator\CodeGeneratorInterface * * @api */ interface CodeGeneratorInterface extends \Laminas\Code\Generator\GeneratorInterface { /** * Set class name. * * @param string $name * @return $this */ public function setName($name); /** * Set class doc block. * * @param array $docBlock * @return $this */ public function setClassDocBlock(array $docBlock); /** * Add a list of properties. * * @param array $properties * @return $this */ public function addProperties(array $properties); /** * Add a list of methods. * * @param array $methods * @return $this */ public function addMethods(array $methods); /** * Set extended class. * * @param string $extendedClass * @return $this */ public function setExtendedClass($extendedClass); /** * Set a list of implemented interfaces. * * @param array $interfaces * @return $this */ public function setImplementedInterfaces(array $interfaces); /** * Add a trait to the class. * * @param string $trait * @return $this */ public function addTrait($trait); }