for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the ClassGeneration package.
*
* (c) Antonio Spinelli <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ClassGeneration;
/**
* Class WriterInterface
* @author Antonio Spinelli <[email protected]>
interface WriterInterface
{
* Class to write a file from Class Object.
* @param PhpClassInterface|array $class
* @return WriterInterface
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct($class = array());
* @param PhpClassInterface $class
public function setPhpClass(PhpClassInterface $class);
* @return PhpClassInterface
public function getPhpClass();
* @param string $path
public function setPath($path);
* @return string
public function getPath();
* @param $fileName
public function setFileName($fileName);
public function getFileName();
* Writes the class on file.
* @return void
public function write();
}
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.