forked from GNUsocial/gnu-social
[DOCUMENTATION][TOOL] Small bug fixes and docblock elaboration
This commit is contained in:
parent
243aefe683
commit
cb7518a750
@ -45,8 +45,8 @@ Prerequisites
|
||||
-----
|
||||
|
||||
In order to host your GNU social instance, you'll need a domain, a
|
||||
server with a constant IP and `docker` and `docker-compose` installed
|
||||
on your system.
|
||||
server with a constant IP and both `docker` and `docker-compose`
|
||||
installed on your system.
|
||||
|
||||
Alternatively, for local hosting or development, behind a NAT, use a
|
||||
dynamic DNS solutions. I recommend you go to
|
||||
@ -59,7 +59,7 @@ With TLS/SSL
|
||||
----
|
||||
|
||||
Next, if you want to setup SSL (which you should in most cases,
|
||||
exceptions being wanting to use the Thor network), you'll need a
|
||||
exceptions being wanting to use the Tor network), you'll need a
|
||||
certificate. There are multiple approaches to achieve this, among
|
||||
which are using a proxy server capable of either proxying an HTTP
|
||||
connection to HTTPS or an HTTPS connection to HTTPS, or creating a
|
||||
|
@ -64,7 +64,7 @@ $license_header = '
|
||||
foreach ($classes as $cls) {
|
||||
$ref = new ReflectionClass($cls);
|
||||
|
||||
$class_name = Common::toCamelCase($cls);
|
||||
$class_name = Common::snakeCaseToCamelCase($cls);
|
||||
$file = $ref->getFileName();
|
||||
$class_comment = $ref->getDocComment();
|
||||
$table_name = $ref->getDefaultProperties()['__table'];
|
||||
|
@ -29,20 +29,20 @@ services:
|
||||
done &
|
||||
nginx -g "daemon off;"'
|
||||
|
||||
certbot:
|
||||
image: certbot/certbot
|
||||
depends_on:
|
||||
- nginx
|
||||
# Check for certificate renewal every 12h as
|
||||
# recomnended by Let's Encryot
|
||||
entrypoint: /bin/sh -c 'trap exit TERM;
|
||||
while :; do
|
||||
certbot renew > /dev/null;
|
||||
sleep 12h & wait $${!};
|
||||
done'
|
||||
volumes:
|
||||
- ./docker/certbot/www:/var/www/certbot
|
||||
- ./docker/certbot/files:/etc/letsencrypt
|
||||
#certbot:
|
||||
# image: certbot/certbot
|
||||
# depends_on:
|
||||
# - nginx
|
||||
# # Check for certificate renewal every 12h as
|
||||
# # recomnended by Let's Encryot
|
||||
# entrypoint: /bin/sh -c 'trap exit TERM;
|
||||
# while :; do
|
||||
# certbot renew > /dev/null;
|
||||
# sleep 12h & wait $${!};
|
||||
# done'
|
||||
# volumes:
|
||||
# - ./docker/certbot/www:/var/www/certbot
|
||||
# - ./docker/certbot/files:/etc/letsencrypt
|
||||
|
||||
php:
|
||||
build: docker/php
|
@ -9,6 +9,6 @@ class TestController extends AbstractController
|
||||
{
|
||||
public function __invoke()
|
||||
{
|
||||
return new Response('<div style="background: #333; text: #999"> Test controller </div>');
|
||||
return new Response('<div style="background: #333; text-color: #999"> Test controller </div>');
|
||||
}
|
||||
}
|
||||
|
@ -31,6 +31,7 @@
|
||||
namespace App\Command;
|
||||
|
||||
use Functional as F;
|
||||
use ReflectionFunction;
|
||||
use Symfony\Bundle\FrameworkBundle\Command\EventDispatcherDebugCommand;
|
||||
use Symfony\Component\Console\Input\InputArgument;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
@ -72,7 +73,7 @@ class ListEventsCommand extends EventDispatcherDebugCommand
|
||||
foreach ($listeners as $event => $listener) {
|
||||
echo 'Event \'' . $event . "\\' handled by:\n";
|
||||
foreach ($listener as $c) {
|
||||
$r = new \ReflectionFunction($c);
|
||||
$r = new ReflectionFunction($c);
|
||||
echo ' ' . get_class($r->getStaticVariables()['handler'][0]) . "\n";
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Compiler pass which triggers Symgony to tell Doctrine to
|
||||
* Compiler pass which triggers Symfony to tell Doctrine to
|
||||
* use out `SchemaDef` metadata driver
|
||||
*
|
||||
* @package GNUsocial
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for attentions
|
||||
*
|
||||
@ -40,8 +42,8 @@ class Attention
|
||||
private int $notice_id;
|
||||
private int $profile_id;
|
||||
private ?string $reason;
|
||||
private \DateTimeInterface $created;
|
||||
private \DateTimeInterface $modified;
|
||||
private DateTimeInterface $created;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function setNoticeId(int $notice_id): self
|
||||
{
|
||||
@ -73,22 +75,22 @@ class Attention
|
||||
return $this->reason;
|
||||
}
|
||||
|
||||
public function setCreated(\DateTimeInterface $created): self
|
||||
public function setCreated(DateTimeInterface $created): self
|
||||
{
|
||||
$this->created = $created;
|
||||
return $this;
|
||||
}
|
||||
public function getCreated(): \DateTimeInterface
|
||||
public function getCreated(): DateTimeInterface
|
||||
{
|
||||
return $this->created;
|
||||
}
|
||||
|
||||
public function setModified(\DateTimeInterface $modified): self
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
public function getModified(): \DateTimeInterface
|
||||
public function getModified(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for user's avatar
|
||||
*
|
||||
@ -43,8 +45,8 @@ class Avatar
|
||||
private int $height;
|
||||
private string $mediatype;
|
||||
private ?string $filename;
|
||||
private \DateTimeInterface $created;
|
||||
private \DateTimeInterface $modified;
|
||||
private DateTimeInterface $created;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function setProfileId(int $profile_id): self
|
||||
{
|
||||
@ -106,22 +108,22 @@ class Avatar
|
||||
return $this->filename;
|
||||
}
|
||||
|
||||
public function setCreated(\DateTimeInterface $created): self
|
||||
public function setCreated(DateTimeInterface $created): self
|
||||
{
|
||||
$this->created = $created;
|
||||
return $this;
|
||||
}
|
||||
public function getCreated(): \DateTimeInterface
|
||||
public function getCreated(): DateTimeInterface
|
||||
{
|
||||
return $this->created;
|
||||
}
|
||||
|
||||
public function setModified(\DateTimeInterface $modified): self
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
public function getModified(): \DateTimeInterface
|
||||
public function getModified(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,7 +13,7 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for user's email confimation
|
||||
*
|
||||
@ -42,9 +44,9 @@ class ConfirmAddress
|
||||
private string $address;
|
||||
private ?string $address_extra;
|
||||
private string $address_type;
|
||||
private ?\DateTimeInterface $claimed;
|
||||
private ?\DateTimeInterface $sent;
|
||||
private \DateTimeInterface $modified;
|
||||
private ?DateTimeInterface $claimed;
|
||||
private ?DateTimeInterface $sent;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function setCode(string $code): self
|
||||
{
|
||||
@ -96,32 +98,32 @@ class ConfirmAddress
|
||||
return $this->address_type;
|
||||
}
|
||||
|
||||
public function setClaimed(?\DateTimeInterface $claimed): self
|
||||
public function setClaimed(?DateTimeInterface $claimed): self
|
||||
{
|
||||
$this->claimed = $claimed;
|
||||
return $this;
|
||||
}
|
||||
public function getClaimed(): ?\DateTimeInterface
|
||||
public function getClaimed(): ?DateTimeInterface
|
||||
{
|
||||
return $this->claimed;
|
||||
}
|
||||
|
||||
public function setSent(?\DateTimeInterface $sent): self
|
||||
public function setSent(?DateTimeInterface $sent): self
|
||||
{
|
||||
$this->sent = $sent;
|
||||
return $this;
|
||||
}
|
||||
public function getSent(): ?\DateTimeInterface
|
||||
public function getSent(): ?DateTimeInterface
|
||||
{
|
||||
return $this->sent;
|
||||
}
|
||||
|
||||
public function setModified(\DateTimeInterface $modified): self
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
public function getModified(): \DateTimeInterface
|
||||
public function getModified(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for OAuth consumer
|
||||
*
|
||||
@ -40,8 +42,8 @@ class Consumer
|
||||
private string $consumer_key;
|
||||
private string $consumer_secret;
|
||||
private string $seed;
|
||||
private \DateTimeInterface $created;
|
||||
private \DateTimeInterface $modified;
|
||||
private DateTimeInterface $created;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function setConsumerKey(string $consumer_key): self
|
||||
{
|
||||
@ -73,22 +75,22 @@ class Consumer
|
||||
return $this->seed;
|
||||
}
|
||||
|
||||
public function setCreated(\DateTimeInterface $created): self
|
||||
public function setCreated(DateTimeInterface $created): self
|
||||
{
|
||||
$this->created = $created;
|
||||
return $this;
|
||||
}
|
||||
public function getCreated(): \DateTimeInterface
|
||||
public function getCreated(): DateTimeInterface
|
||||
{
|
||||
return $this->created;
|
||||
}
|
||||
|
||||
public function setModified(\DateTimeInterface $modified): self
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
public function getModified(): \DateTimeInterface
|
||||
public function getModified(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Data class for Conversations
|
||||
*
|
||||
@ -38,8 +40,8 @@ class Conversation
|
||||
private int $id;
|
||||
private string $uri;
|
||||
private ?string $url;
|
||||
private \DateTimeInterface $created;
|
||||
private \DateTimeInterface $modified;
|
||||
private DateTimeInterface $created;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function setId(int $id): self
|
||||
{
|
||||
@ -71,22 +73,22 @@ class Conversation
|
||||
return $this->url;
|
||||
}
|
||||
|
||||
public function setCreated(\DateTimeInterface $created): self
|
||||
public function setCreated(DateTimeInterface $created): self
|
||||
{
|
||||
$this->created = $created;
|
||||
return $this;
|
||||
}
|
||||
public function getCreated(): \DateTimeInterface
|
||||
public function getCreated(): DateTimeInterface
|
||||
{
|
||||
return $this->created;
|
||||
}
|
||||
|
||||
public function setModified(\DateTimeInterface $modified): self
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
public function getModified(): \DateTimeInterface
|
||||
public function getModified(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
@ -100,7 +102,7 @@ class Conversation
|
||||
'fields' => [
|
||||
'id' => ['type' => 'serial', 'not null' => true, 'description' => 'Unique identifier, (again) unrelated to notice id since 2016-01-06'],
|
||||
'uri' => ['type' => 'varchar', 'not null' => true, 'length' => 191, 'description' => 'URI of the conversation'],
|
||||
'url' => ['type' => 'varchar', 'length' => 191, 'description' => 'Resolvable URL, preferrably remote (local can be generated on the fly)'],
|
||||
'url' => ['type' => 'varchar', 'length' => 191, 'description' => 'Resolvable URL, preferably remote (local can be generated on the fly)'],
|
||||
'created' => ['type' => 'datetime', 'not null' => true, 'default' => '0000-00-00 00:00:00', 'description' => 'date this record was created'],
|
||||
'modified' => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was modified'],
|
||||
],
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for uploaded files
|
||||
*
|
||||
@ -49,7 +51,7 @@ class File
|
||||
private ?string $filename;
|
||||
private ?int $width;
|
||||
private ?int $height;
|
||||
private \DateTimeInterface $modified;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function setId(int $id): self
|
||||
{
|
||||
@ -171,12 +173,12 @@ class File
|
||||
return $this->height;
|
||||
}
|
||||
|
||||
public function setModified(\DateTimeInterface $modified): self
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
public function getModified(): \DateTimeInterface
|
||||
public function getModified(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for File redirects
|
||||
*
|
||||
@ -42,7 +44,7 @@ class FileRedirection
|
||||
private ?int $file_id;
|
||||
private ?int $redirections;
|
||||
private ?int $httpcode;
|
||||
private \DateTimeInterface $modified;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function setUrlhash(string $urlhash): self
|
||||
{
|
||||
@ -94,12 +96,12 @@ class FileRedirection
|
||||
return $this->httpcode;
|
||||
}
|
||||
|
||||
public function setModified(\DateTimeInterface $modified): self
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
public function getModified(): \DateTimeInterface
|
||||
public function getModified(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for File thumbnails
|
||||
*
|
||||
@ -43,7 +45,7 @@ class FileThumbnail
|
||||
private ?string $filename;
|
||||
private int $width;
|
||||
private int $height;
|
||||
private \DateTimeInterface $modified;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function setFileId(int $file_id): self
|
||||
{
|
||||
@ -105,12 +107,12 @@ class FileThumbnail
|
||||
return $this->height;
|
||||
}
|
||||
|
||||
public function setModified(\DateTimeInterface $modified): self
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
public function getModified(): \DateTimeInterface
|
||||
public function getModified(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for relating a file to a post
|
||||
*
|
||||
@ -39,7 +41,7 @@ class FileToPost
|
||||
|
||||
private int $file_id;
|
||||
private int $post_id;
|
||||
private \DateTimeInterface $modified;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function setFileId(int $file_id): self
|
||||
{
|
||||
@ -61,12 +63,12 @@ class FileToPost
|
||||
return $this->post_id;
|
||||
}
|
||||
|
||||
public function setModified(\DateTimeInterface $modified): self
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
public function getModified(): \DateTimeInterface
|
||||
public function getModified(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for user's foreign profile
|
||||
*
|
||||
@ -44,10 +46,10 @@ class ForeignLink
|
||||
private int $noticesync;
|
||||
private int $friendsync;
|
||||
private int $profilesync;
|
||||
private ?\DateTimeInterface $last_noticesync;
|
||||
private ?\DateTimeInterface $last_friendsync;
|
||||
private \DateTimeInterface $created;
|
||||
private \DateTimeInterface $modified;
|
||||
private ?DateTimeInterface $last_noticesync;
|
||||
private ?DateTimeInterface $last_friendsync;
|
||||
private DateTimeInterface $created;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function setUserId(int $user_id): self
|
||||
{
|
||||
@ -119,42 +121,42 @@ class ForeignLink
|
||||
return $this->profilesync;
|
||||
}
|
||||
|
||||
public function setLastNoticesync(?\DateTimeInterface $last_noticesync): self
|
||||
public function setLastNoticesync(?DateTimeInterface $last_noticesync): self
|
||||
{
|
||||
$this->last_noticesync = $last_noticesync;
|
||||
return $this;
|
||||
}
|
||||
public function getLastNoticesync(): ?\DateTimeInterface
|
||||
public function getLastNoticesync(): ?DateTimeInterface
|
||||
{
|
||||
return $this->last_noticesync;
|
||||
}
|
||||
|
||||
public function setLastFriendsync(?\DateTimeInterface $last_friendsync): self
|
||||
public function setLastFriendsync(?DateTimeInterface $last_friendsync): self
|
||||
{
|
||||
$this->last_friendsync = $last_friendsync;
|
||||
return $this;
|
||||
}
|
||||
public function getLastFriendsync(): ?\DateTimeInterface
|
||||
public function getLastFriendsync(): ?DateTimeInterface
|
||||
{
|
||||
return $this->last_friendsync;
|
||||
}
|
||||
|
||||
public function setCreated(\DateTimeInterface $created): self
|
||||
public function setCreated(DateTimeInterface $created): self
|
||||
{
|
||||
$this->created = $created;
|
||||
return $this;
|
||||
}
|
||||
public function getCreated(): \DateTimeInterface
|
||||
public function getCreated(): DateTimeInterface
|
||||
{
|
||||
return $this->created;
|
||||
}
|
||||
|
||||
public function setModified(\DateTimeInterface $modified): self
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
public function getModified(): \DateTimeInterface
|
||||
public function getModified(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for foreign services
|
||||
*
|
||||
@ -40,8 +42,8 @@ class ForeignService
|
||||
private int $id;
|
||||
private string $name;
|
||||
private ?string $description;
|
||||
private \DateTimeInterface $created;
|
||||
private \DateTimeInterface $modified;
|
||||
private DateTimeInterface $created;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function setId(int $id): self
|
||||
{
|
||||
@ -73,22 +75,22 @@ class ForeignService
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
public function setCreated(\DateTimeInterface $created): self
|
||||
public function setCreated(DateTimeInterface $created): self
|
||||
{
|
||||
$this->created = $created;
|
||||
return $this;
|
||||
}
|
||||
public function getCreated(): \DateTimeInterface
|
||||
public function getCreated(): DateTimeInterface
|
||||
{
|
||||
return $this->created;
|
||||
}
|
||||
|
||||
public function setModified(\DateTimeInterface $modified): self
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
public function getModified(): \DateTimeInterface
|
||||
public function getModified(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for user's foreign subscriptions
|
||||
*
|
||||
@ -40,7 +42,7 @@ class ForeignSubscription
|
||||
private int $service;
|
||||
private int $subscriber;
|
||||
private int $subscribed;
|
||||
private \DateTimeInterface $created;
|
||||
private DateTimeInterface $created;
|
||||
|
||||
public function setService(int $service): self
|
||||
{
|
||||
@ -72,12 +74,12 @@ class ForeignSubscription
|
||||
return $this->subscribed;
|
||||
}
|
||||
|
||||
public function setCreated(\DateTimeInterface $created): self
|
||||
public function setCreated(DateTimeInterface $created): self
|
||||
{
|
||||
$this->created = $created;
|
||||
return $this;
|
||||
}
|
||||
public function getCreated(): \DateTimeInterface
|
||||
public function getCreated(): DateTimeInterface
|
||||
{
|
||||
return $this->created;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for Foreign Users
|
||||
*
|
||||
@ -41,8 +43,8 @@ class ForeignUser
|
||||
private int $service;
|
||||
private string $uri;
|
||||
private ?string $nickname;
|
||||
private \DateTimeInterface $created;
|
||||
private \DateTimeInterface $modified;
|
||||
private DateTimeInterface $created;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function setId(int $id): self
|
||||
{
|
||||
@ -84,22 +86,22 @@ class ForeignUser
|
||||
return $this->nickname;
|
||||
}
|
||||
|
||||
public function setCreated(\DateTimeInterface $created): self
|
||||
public function setCreated(DateTimeInterface $created): self
|
||||
{
|
||||
$this->created = $created;
|
||||
return $this;
|
||||
}
|
||||
public function getCreated(): \DateTimeInterface
|
||||
public function getCreated(): DateTimeInterface
|
||||
{
|
||||
return $this->created;
|
||||
}
|
||||
|
||||
public function setModified(\DateTimeInterface $modified): self
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
public function getModified(): \DateTimeInterface
|
||||
public function getModified(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for Group Alias
|
||||
*
|
||||
@ -39,7 +41,7 @@ class GroupAlias
|
||||
|
||||
private string $alias;
|
||||
private int $group_id;
|
||||
private \DateTimeInterface $modified;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function setAlias(string $alias): self
|
||||
{
|
||||
@ -61,12 +63,12 @@ class GroupAlias
|
||||
return $this->group_id;
|
||||
}
|
||||
|
||||
public function setModified(\DateTimeInterface $modified): self
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
public function getModified(): \DateTimeInterface
|
||||
public function getModified(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for Group Block
|
||||
*
|
||||
@ -40,7 +42,7 @@ class GroupBlock
|
||||
private int $group_id;
|
||||
private int $blocked;
|
||||
private int $blocker;
|
||||
private \DateTimeInterface $modified;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function setGroupId(int $group_id): self
|
||||
{
|
||||
@ -72,12 +74,12 @@ class GroupBlock
|
||||
return $this->blocker;
|
||||
}
|
||||
|
||||
public function setModified(\DateTimeInterface $modified): self
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
public function getModified(): \DateTimeInterface
|
||||
public function getModified(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for Group's inbox
|
||||
*
|
||||
@ -39,7 +41,7 @@ class GroupInbox
|
||||
|
||||
private int $group_id;
|
||||
private int $notice_id;
|
||||
private \DateTimeInterface $created;
|
||||
private DateTimeInterface $created;
|
||||
|
||||
public function setGroupId(int $group_id): self
|
||||
{
|
||||
@ -61,12 +63,12 @@ class GroupInbox
|
||||
return $this->notice_id;
|
||||
}
|
||||
|
||||
public function setCreated(\DateTimeInterface $created): self
|
||||
public function setCreated(DateTimeInterface $created): self
|
||||
{
|
||||
$this->created = $created;
|
||||
return $this;
|
||||
}
|
||||
public function getCreated(): \DateTimeInterface
|
||||
public function getCreated(): DateTimeInterface
|
||||
{
|
||||
return $this->created;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for Queue on joining a group
|
||||
*
|
||||
@ -39,7 +41,7 @@ class GroupJoinQueue
|
||||
|
||||
private int $profile_id;
|
||||
private int $group_id;
|
||||
private \DateTimeInterface $created;
|
||||
private DateTimeInterface $created;
|
||||
|
||||
public function setProfileId(int $profile_id): self
|
||||
{
|
||||
@ -61,12 +63,12 @@ class GroupJoinQueue
|
||||
return $this->group_id;
|
||||
}
|
||||
|
||||
public function setCreated(\DateTimeInterface $created): self
|
||||
public function setCreated(DateTimeInterface $created): self
|
||||
{
|
||||
$this->created = $created;
|
||||
return $this;
|
||||
}
|
||||
public function getCreated(): \DateTimeInterface
|
||||
public function getCreated(): DateTimeInterface
|
||||
{
|
||||
return $this->created;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for a Group Member
|
||||
*
|
||||
@ -41,8 +43,8 @@ class GroupMember
|
||||
private int $profile_id;
|
||||
private ?bool $is_admin;
|
||||
private ?string $uri;
|
||||
private \DateTimeInterface $created;
|
||||
private \DateTimeInterface $modified;
|
||||
private DateTimeInterface $created;
|
||||
private DateTimeInterface $modified;
|
||||
|
||||
public function setGroupId(int $group_id): self
|
||||
{
|
||||
@ -84,22 +86,22 @@ class GroupMember
|
||||
return $this->uri;
|
||||
}
|
||||
|
||||
public function setCreated(\DateTimeInterface $created): self
|
||||
public function setCreated(DateTimeInterface $created): self
|
||||
{
|
||||
$this->created = $created;
|
||||
return $this;
|
||||
}
|
||||
public function getCreated(): \DateTimeInterface
|
||||
public function getCreated(): DateTimeInterface
|
||||
{
|
||||
return $this->created;
|
||||
}
|
||||
|
||||
public function setModified(\DateTimeInterface $modified): self
|
||||
public function setModified(DateTimeInterface $modified): self
|
||||
{
|
||||
$this->modified = $modified;
|
||||
return $this;
|
||||
}
|
||||
public function getModified(): \DateTimeInterface
|
||||
public function getModified(): DateTimeInterface
|
||||
{
|
||||
return $this->modified;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
// This file is part of GNU social - https://www.gnu.org/software/soci
|
||||
//
|
||||
// GNU social is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as publ
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
@ -13,12 +13,14 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public Li
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* Entity for user invitations
|
||||
*
|
||||
@ -41,7 +43,7 @@ class Invitation
|
||||
private int $user_id;
|
||||
private string $address;
|
||||
private string $address_type;
|
||||
private \DateTimeInterface $created;
|
||||
private DateTimeInterface $created;
|
||||
private ?int $registered_user_id;
|
||||
|
||||
public function setCode(string $code): self
|
||||
@ -84,12 +86,12 @@ class Invitation
|
||||
return $this->address_type;
|
||||
}
|
||||
|
||||
public function setCreated(\DateTimeInterface $created): self
|
||||
public function setCreated(DateTimeInterface $created): self
|
||||
{
|
||||
$this->created = $created;
|
||||
return $this;
|
||||
}
|
||||
public function getCreated(): \DateTimeInterface
|
||||
public function getCreated(): DateTimeInterface
|
||||
{
|
||||
return $this->created;
|
||||
}
|
||||
|
@ -19,6 +19,8 @@
|
||||
|
||||