Completed
Pull Request — master (#57)
by Tom
06:09
created

TouristAttraction::availableLanguage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Spatie\SchemaOrg;
4
5
/**
6
 * A tourist attraction.  In principle any Thing can be a [[TouristAttraction]],
7
 * from a [[Mountain]] and [[LandmarksOrHistoricalBuildings]] to a
8
 * [[LocalBusiness]].  This Type can be used on its own to describe a general
9
 * [[TouristAttraction]], or be used as an [[additionalType]] to add tourist
10
 * attraction properties to any other type.  (See examples below)
11
 *
12
 * @see http://schema.org/TouristAttraction
13
 */
14
class TouristAttraction extends Place
15
{
16
    /**
17
     * A language someone may use with or at the item, service or place. Please
18
     * use one of the language codes from the [IETF BCP 47
19
     * standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]]
20
     *
21
     * @param Language|Language[]|string|string[] $availableLanguage
22
     *
23
     * @return static
24
     *
25
     * @see http://schema.org/availableLanguage
26
     */
27
    public function availableLanguage($availableLanguage)
28
    {
29
        return $this->setProperty('availableLanguage', $availableLanguage);
30
    }
31
32
    /**
33
     * Attraction suitable for type(s) of tourist. eg. Children, visitors from a
34
     * particular country, etc.
35
     *
36
     * @param Audience|Audience[]|string|string[] $touristType
37
     *
38
     * @return static
39
     *
40
     * @see http://schema.org/touristType
41
     */
42
    public function touristType($touristType)
43
    {
44
        return $this->setProperty('touristType', $touristType);
45
    }
46
47
}
48