1
0
Fork 0
mirror of synced 2025-04-01 20:36:14 +03:00

DDC-2704 - synchronized model classes to new test code

This commit is contained in:
Marco Pivetta 2015-01-20 15:25:35 +01:00
parent 885700d38c
commit 3df9b4d122
2 changed files with 27 additions and 0 deletions

View file

@ -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;
}
}

View file

@ -26,6 +26,8 @@ namespace Doctrine\Tests\Models\DirectoryTree;
*/
class File extends AbstractContentItem
{
const CLASSNAME = __CLASS__;
/** @Column(type="string") */
protected $extension = "html";