Code Duplication    Length = 15-15 lines in 2 locations

src/Entities/Date.php 1 location

@@ 10-24 (lines=15) @@
7
 * @property-read string $type A description of the date (e.g. onsale date, FOC date).
8
 * @property-read \DateTime $date The date.
9
 */
10
class Date extends AbstractEntity
11
{
12
    /**
13
     * @see AbstractEntity::getFilters()
14
     *
15
     * @return array
16
     */
17
    final protected function getFilters() : array
18
    {
19
        return [
20
            'type' => ['default' => null, ['string', true]],
21
            'date' => ['default' => null, ['date', true]],
22
        ];
23
    }
24
}
25

src/Entities/Url.php 1 location

@@ 11-25 (lines=15) @@
8
 * @property-read string $type A text identifier for the URL.
9
 * @property-read string $url A full URL (including scheme, domain, and path).
10
 */
11
class Url extends AbstractEntity
12
{
13
    /**
14
     * @see AbstractEntity::getFilters()
15
     *
16
     * @return array
17
     */
18
    final protected function getFilters() : array
19
    {
20
        return [
21
            'type' => ['default' => null, ['string', true, 0]],
22
            'url' => ['default' => null, ['string', true, 0]],
23
        ];
24
    }
25
}
26