-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Attributes): Migration to attributes
- Loading branch information
1 parent
d4b9ee9
commit 21a28c8
Showing
15 changed files
with
1,723 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,191 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* THIS IS A GENERATED FILE, DO NOT EDIT IT | ||
* IT WILL BE RECREATED AT EACH NODE-TYPE UPDATE | ||
*/ | ||
namespace App\GeneratedEntity; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
use Symfony\Component\Serializer\Annotation as SymfonySerializer; | ||
use Gedmo\Mapping\Annotation as Gedmo; | ||
use Doctrine\ORM\Mapping as ORM; | ||
use ApiPlatform\Core\Annotation\ApiFilter; | ||
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter as OrmFilter; | ||
use ApiPlatform\Core\Serializer\Filter\PropertyFilter; | ||
|
||
/** | ||
* DO NOT EDIT | ||
* Generated custom node-source type by Roadiz. | ||
*/ | ||
#[ | ||
Gedmo\Loggable(logEntryClass: \RZ\Roadiz\CoreBundle\Entity\UserLogEntry::class), | ||
ORM\Entity(repositoryClass: \App\GeneratedEntity\Repository\NSArticleRepository::class), | ||
ORM\Table(name: "ns_article"), | ||
ApiFilter(PropertyFilter::class) | ||
] | ||
class NSArticle extends \RZ\Roadiz\CoreBundle\Entity\NodesSources | ||
{ | ||
/** | ||
* Your content. | ||
*/ | ||
#[ | ||
SymfonySerializer\SerializedName(serializedName: "content"), | ||
SymfonySerializer\Groups(["nodes_sources", "nodes_sources_default"]), | ||
SymfonySerializer\MaxDepth(2), | ||
Gedmo\Versioned, | ||
ORM\Column(type: "text", nullable: true, name: "content"), | ||
Serializer\Groups(["nodes_sources", "nodes_sources_default"]), | ||
Serializer\MaxDepth(2), | ||
Serializer\Type("string") | ||
] | ||
private ?string $content = null; | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getContent(): ?string | ||
{ | ||
return $this->content; | ||
} | ||
|
||
/** | ||
* @param string|null $content | ||
* | ||
* @return $this | ||
*/ | ||
public function setContent($content) | ||
{ | ||
$this->content = null !== $content ? | ||
(string) $content : | ||
null; | ||
|
||
return $this; | ||
} | ||
|
||
|
||
/** | ||
* Secret realm_b. | ||
*/ | ||
#[ | ||
SymfonySerializer\SerializedName(serializedName: "realmBSecret"), | ||
SymfonySerializer\Groups(["realm_b"]), | ||
SymfonySerializer\MaxDepth(2), | ||
Gedmo\Versioned, | ||
ORM\Column( | ||
type: "string", | ||
nullable: true, | ||
name: "realm_b_secret", | ||
length: 250 | ||
), | ||
Serializer\Groups(["realm_b"]), | ||
Serializer\MaxDepth(2), | ||
Serializer\Type("string") | ||
] | ||
private ?string $realmBSecret = null; | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getRealmBSecret(): ?string | ||
{ | ||
return $this->realmBSecret; | ||
} | ||
|
||
/** | ||
* @param string|null $realmBSecret | ||
* | ||
* @return $this | ||
*/ | ||
public function setRealmBSecret($realmBSecret) | ||
{ | ||
$this->realmBSecret = null !== $realmBSecret ? | ||
(string) $realmBSecret : | ||
null; | ||
|
||
return $this; | ||
} | ||
|
||
|
||
/** | ||
* Secret realm_a. | ||
*/ | ||
#[ | ||
SymfonySerializer\SerializedName(serializedName: "realmASecret"), | ||
SymfonySerializer\Groups(["realm_a"]), | ||
SymfonySerializer\MaxDepth(2), | ||
Gedmo\Versioned, | ||
ORM\Column( | ||
type: "string", | ||
nullable: true, | ||
name: "realm_a_secret", | ||
length: 250 | ||
), | ||
Serializer\Groups(["realm_a"]), | ||
Serializer\MaxDepth(2), | ||
Serializer\Type("string") | ||
] | ||
private ?string $realmASecret = null; | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getRealmASecret(): ?string | ||
{ | ||
return $this->realmASecret; | ||
} | ||
|
||
/** | ||
* @param string|null $realmASecret | ||
* | ||
* @return $this | ||
*/ | ||
public function setRealmASecret($realmASecret) | ||
{ | ||
$this->realmASecret = null !== $realmASecret ? | ||
(string) $realmASecret : | ||
null; | ||
|
||
return $this; | ||
} | ||
|
||
|
||
#[ | ||
Serializer\VirtualProperty, | ||
Serializer\Groups(["nodes_sources", "nodes_sources_default"]), | ||
Serializer\SerializedName("@type"), | ||
SymfonySerializer\Groups(["nodes_sources", "nodes_sources_default"]), | ||
SymfonySerializer\SerializedName(serializedName: "@type") | ||
] | ||
public function getNodeTypeName(): string | ||
{ | ||
return 'Article'; | ||
} | ||
|
||
/** | ||
* $this->nodeType->isReachable() proxy. | ||
* | ||
* @return bool Does this nodeSource is reachable over network? | ||
*/ | ||
public function isReachable(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
/** | ||
* $this->nodeType->isPublishable() proxy. | ||
* | ||
* @return bool Does this nodeSource is publishable with date and time? | ||
*/ | ||
public function isPublishable(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function __toString() | ||
{ | ||
return '[NSArticle] ' . parent::__toString(); | ||
} | ||
} |
Oops, something went wrong.