*
* @param string $path The resource path
*/
- public function __construct(private User $user, private string $path) {
+ public function __construct(private Album $album, private User $user, private string $path) {
$this->created = new \DateTime('now');
$this->updated = new \DateTime('now');
}
return $this->id;
}
+ /**
+ * Set album
+ *
+ * @param \Rapsys\TreeBundle\Entity\Album $album
+ *
+ * @return Resource
+ */
+ public function setAlbum(Album $album): Resource {
+ $this->album = $album;
+
+ return $this;
+ }
+
+ /**
+ * Get album
+ *
+ * @return \Rapsys\TreeBundle\Entity\Album
+ */
+ public function getAlbum(): Album {
+ return $this->album;
+ }
+
/**
* Set user
*
- * @param \Rapsys\BlogBundle\Entity\User $user
+ * @param \Rapsys\TreeBundle\Entity\User $user
*
* @return Resource
*/
/**
* Get user
*
- * @return \Rapsys\BlogBundle\Entity\User
+ * @return \Rapsys\TreeBundle\Entity\User
*/
public function getUser(): User {
return $this->user;