DDC-2704 - synchronized model classes to new test code
This commit is contained in:
parent
885700d38c
commit
3df9b4d122
2 changed files with 27 additions and 0 deletions
|
@ -24,6 +24,8 @@ namespace Doctrine\Tests\Models\DirectoryTree;
|
|||
*/
|
||||
abstract class AbstractContentItem
|
||||
{
|
||||
const CLASSNAME = __CLASS__;
|
||||
|
||||
/**
|
||||
* @Id @Column(type="integer") @GeneratedValue
|
||||
*/
|
||||
|
@ -37,6 +39,13 @@ abstract class AbstractContentItem
|
|||
/** @column(type="string") */
|
||||
protected $name;
|
||||
|
||||
/**
|
||||
* This field is transient and private on purpose
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
private $nodeIsLoaded = false;
|
||||
|
||||
public function __construct(Directory $parentDir = null)
|
||||
{
|
||||
$this->parentDirectory = $parentDir;
|
||||
|
@ -61,4 +70,20 @@ abstract class AbstractContentItem
|
|||
{
|
||||
return $this->parentDirectory;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getNodeIsLoaded()
|
||||
{
|
||||
return $this->nodeIsLoaded;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $nodeIsLoaded
|
||||
*/
|
||||
public function setNodeIsLoaded($nodeIsLoaded)
|
||||
{
|
||||
$this->nodeIsLoaded = (bool) $nodeIsLoaded;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,6 +26,8 @@ namespace Doctrine\Tests\Models\DirectoryTree;
|
|||
*/
|
||||
class File extends AbstractContentItem
|
||||
{
|
||||
const CLASSNAME = __CLASS__;
|
||||
|
||||
/** @Column(type="string") */
|
||||
protected $extension = "html";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue