vendor/sensio/generator-bundle/Model/Bundle.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Sensio\Bundle\GeneratorBundle\Model;
use Symfony\Component\DependencyInjection\Container;
/**
* Represents a bundle being built.
*/
class Bundle
{
private $namespace;
private $name;
private $targetDirectory;
private $configurationFormat;
private $isShared;
private $testsDirectory;
public function __construct($namespace, $name, $targetDirectory, $configurationFormat, $isShared)
{
$this->namespace = $namespace;
$this->name = $name;
$this->targetDirectory = $targetDirectory;
$this->configurationFormat = $configurationFormat;
$this->isShared = $isShared;
$this->testsDirectory = $this->getTargetDirectory().'/Tests';
}
public function getNamespace()
{
return $this->namespace;
}
public function getName()
{
return $this->name;
}
public function getConfigurationFormat()
{
return $this->configurationFormat;
}
public function isShared()
{
return $this->isShared;
}
/**
* Returns the directory where the bundle will be generated.
*
* @return string
*/
public function getTargetDirectory()
{
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。