| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 19 |  |  | 19 |  | 342825 | use base qw(Wikibase::Datatype::Form); | 
|  | 19 |  |  |  |  | 77 |  | 
|  | 19 |  |  |  |  | 8524 |  | 
| 4 | 19 |  |  | 19 |  | 149 | use strict; | 
|  | 19 |  |  |  |  | 49 |  | 
|  | 19 |  |  |  |  | 447 |  | 
| 5 | 19 |  |  | 19 |  | 102 | use warnings; | 
|  | 19 |  |  |  |  | 48 |  | 
|  | 19 |  |  |  |  | 570 |  | 
| 6 |  |  |  |  |  |  |  | 
| 7 | 19 |  |  | 19 |  | 8622 | use Unicode::UTF8 qw(decode_utf8); | 
|  | 19 |  |  |  |  | 9778 |  | 
|  | 19 |  |  |  |  | 1011 |  | 
| 8 | 19 |  |  | 19 |  | 8214 | use Wikibase::Datatype::Statement; | 
|  | 19 |  |  |  |  | 61 |  | 
|  | 19 |  |  |  |  | 586 |  | 
| 9 | 19 |  |  | 19 |  | 8362 | use Wikibase::Datatype::Snak; | 
|  | 19 |  |  |  |  | 123 |  | 
|  | 19 |  |  |  |  | 641 |  | 
| 10 | 19 |  |  | 19 |  | 8195 | use Wikibase::Datatype::Value::Item; | 
|  | 19 |  |  |  |  | 75 |  | 
|  | 19 |  |  |  |  | 630 |  | 
| 11 | 19 |  |  | 19 |  | 7978 | use Wikibase::Datatype::Value::Monolingual; | 
|  | 19 |  |  |  |  | 105 |  | 
|  | 19 |  |  |  |  | 558 |  | 
| 12 | 19 |  |  | 19 |  | 8132 | use Wikibase::Datatype::Value::String; | 
|  | 19 |  |  |  |  | 65 |  | 
|  | 19 |  |  |  |  | 3403 |  | 
| 13 |  |  |  |  |  |  |  | 
| 14 |  |  |  |  |  |  | our $VERSION = 0.29; | 
| 15 |  |  |  |  |  |  |  | 
| 16 |  |  |  |  |  |  | sub new { | 
| 17 | 15 |  |  | 15 | 1 | 184 | my $class = shift; | 
| 18 |  |  |  |  |  |  |  | 
| 19 | 15 |  |  |  |  | 131 | my @params = ( | 
| 20 |  |  |  |  |  |  | 'grammatical_features' => [ | 
| 21 |  |  |  |  |  |  | # singular | 
| 22 |  |  |  |  |  |  | Wikibase::Datatype::Value::Item->new( | 
| 23 |  |  |  |  |  |  | 'value' => 'Q110786', | 
| 24 |  |  |  |  |  |  | ), | 
| 25 |  |  |  |  |  |  | # nominative case | 
| 26 |  |  |  |  |  |  | Wikibase::Datatype::Value::Item->new( | 
| 27 |  |  |  |  |  |  | 'value' => 'Q131105', | 
| 28 |  |  |  |  |  |  | ), | 
| 29 |  |  |  |  |  |  | ], | 
| 30 |  |  |  |  |  |  | 'id' => 'L469-F1', | 
| 31 |  |  |  |  |  |  | 'representations' => [ | 
| 32 |  |  |  |  |  |  | Wikibase::Datatype::Value::Monolingual->new( | 
| 33 |  |  |  |  |  |  | 'language' => 'cs', | 
| 34 |  |  |  |  |  |  | 'value' => 'pes', | 
| 35 |  |  |  |  |  |  | ), | 
| 36 |  |  |  |  |  |  | ], | 
| 37 |  |  |  |  |  |  | 'statements' => [ | 
| 38 |  |  |  |  |  |  | Wikibase::Datatype::Statement->new( | 
| 39 |  |  |  |  |  |  | # IPA transcription (P898) | 
| 40 |  |  |  |  |  |  | 'snak' => Wikibase::Datatype::Snak->new( | 
| 41 |  |  |  |  |  |  | 'datatype' => 'string', | 
| 42 |  |  |  |  |  |  | 'datavalue' => Wikibase::Datatype::Value::String->new( | 
| 43 |  |  |  |  |  |  | 'value' => decode_utf8('pɛs'), | 
| 44 |  |  |  |  |  |  | ), | 
| 45 |  |  |  |  |  |  | 'property' => 'P898', | 
| 46 |  |  |  |  |  |  | ), | 
| 47 |  |  |  |  |  |  | ), | 
| 48 |  |  |  |  |  |  | ], | 
| 49 |  |  |  |  |  |  | ); | 
| 50 |  |  |  |  |  |  |  | 
| 51 | 15 |  |  |  |  | 267 | my $self = $class->SUPER::new(@params); | 
| 52 |  |  |  |  |  |  |  | 
| 53 | 15 |  |  |  |  | 211 | return $self; | 
| 54 |  |  |  |  |  |  | } | 
| 55 |  |  |  |  |  |  |  | 
| 56 |  |  |  |  |  |  | 1; | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | __END__ | 
| 59 |  |  |  |  |  |  |  | 
| 60 |  |  |  |  |  |  | =pod | 
| 61 |  |  |  |  |  |  |  | 
| 62 |  |  |  |  |  |  | =encoding utf8 | 
| 63 |  |  |  |  |  |  |  | 
| 64 |  |  |  |  |  |  | =head1 NAME | 
| 65 |  |  |  |  |  |  |  | 
| 66 |  |  |  |  |  |  | Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular - Test instance for Wikidata form. | 
| 67 |  |  |  |  |  |  |  | 
| 68 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 69 |  |  |  |  |  |  |  | 
| 70 |  |  |  |  |  |  | use Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular; | 
| 71 |  |  |  |  |  |  |  | 
| 72 |  |  |  |  |  |  | my $obj = Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular->new; | 
| 73 |  |  |  |  |  |  | my $grammatical_features_ar = $obj->grammatical_features; | 
| 74 |  |  |  |  |  |  | my $id = $obj->id; | 
| 75 |  |  |  |  |  |  | my $representations_ar = $obj->representations; | 
| 76 |  |  |  |  |  |  | my $statements_ar = $obj->statements; | 
| 77 |  |  |  |  |  |  |  | 
| 78 |  |  |  |  |  |  | =head1 METHODS | 
| 79 |  |  |  |  |  |  |  | 
| 80 |  |  |  |  |  |  | =head2 C<new> | 
| 81 |  |  |  |  |  |  |  | 
| 82 |  |  |  |  |  |  | my $obj = Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular->new; | 
| 83 |  |  |  |  |  |  |  | 
| 84 |  |  |  |  |  |  | Constructor. | 
| 85 |  |  |  |  |  |  |  | 
| 86 |  |  |  |  |  |  | Returns instance of object. | 
| 87 |  |  |  |  |  |  |  | 
| 88 |  |  |  |  |  |  | =head2 C<grammatical_features> | 
| 89 |  |  |  |  |  |  |  | 
| 90 |  |  |  |  |  |  | my $grammatical_features_ar = $obj->grammatical_features; | 
| 91 |  |  |  |  |  |  |  | 
| 92 |  |  |  |  |  |  | Get grammatical features. | 
| 93 |  |  |  |  |  |  |  | 
| 94 |  |  |  |  |  |  | Returns reference to array of Q items. | 
| 95 |  |  |  |  |  |  |  | 
| 96 |  |  |  |  |  |  | =head2 C<id> | 
| 97 |  |  |  |  |  |  |  | 
| 98 |  |  |  |  |  |  | my $id = $obj->id; | 
| 99 |  |  |  |  |  |  |  | 
| 100 |  |  |  |  |  |  | Get form identifier. | 
| 101 |  |  |  |  |  |  |  | 
| 102 |  |  |  |  |  |  | Returns string. | 
| 103 |  |  |  |  |  |  |  | 
| 104 |  |  |  |  |  |  | =head2 C<representations> | 
| 105 |  |  |  |  |  |  |  | 
| 106 |  |  |  |  |  |  | my $representations_ar = $obj->representations; | 
| 107 |  |  |  |  |  |  |  | 
| 108 |  |  |  |  |  |  | Get representations. | 
| 109 |  |  |  |  |  |  |  | 
| 110 |  |  |  |  |  |  | Returns reference to array with Wikibase::Datatype::Value::Monolingual items. | 
| 111 |  |  |  |  |  |  |  | 
| 112 |  |  |  |  |  |  | =head2 C<statements> | 
| 113 |  |  |  |  |  |  |  | 
| 114 |  |  |  |  |  |  | my $statements_ar = $obj->statements; | 
| 115 |  |  |  |  |  |  |  | 
| 116 |  |  |  |  |  |  | Get statements. | 
| 117 |  |  |  |  |  |  |  | 
| 118 |  |  |  |  |  |  | Returns reference to array of Wikibase::Datatype::Statement items. | 
| 119 |  |  |  |  |  |  |  | 
| 120 |  |  |  |  |  |  | =head1 EXAMPLE | 
| 121 |  |  |  |  |  |  |  | 
| 122 |  |  |  |  |  |  | =for comment filename=fixture_create_and_print_form_wd_dogczechsingular.pl | 
| 123 |  |  |  |  |  |  |  | 
| 124 |  |  |  |  |  |  | use strict; | 
| 125 |  |  |  |  |  |  | use warnings; | 
| 126 |  |  |  |  |  |  |  | 
| 127 |  |  |  |  |  |  | use Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular; | 
| 128 |  |  |  |  |  |  | use Unicode::UTF8 qw(encode_utf8); | 
| 129 |  |  |  |  |  |  | use Wikibase::Datatype::Print::Form; | 
| 130 |  |  |  |  |  |  |  | 
| 131 |  |  |  |  |  |  | # Object. | 
| 132 |  |  |  |  |  |  | my $obj = Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular->new; | 
| 133 |  |  |  |  |  |  |  | 
| 134 |  |  |  |  |  |  | # Print out. | 
| 135 |  |  |  |  |  |  | print encode_utf8(scalar Wikibase::Datatype::Print::Form::print($obj)); | 
| 136 |  |  |  |  |  |  |  | 
| 137 |  |  |  |  |  |  | # Output: | 
| 138 |  |  |  |  |  |  | # Id: L469-F1 | 
| 139 |  |  |  |  |  |  | # Representation: pes (cs) | 
| 140 |  |  |  |  |  |  | # Grammatical features: Q110786, Q131105 | 
| 141 |  |  |  |  |  |  | # Statements: | 
| 142 |  |  |  |  |  |  | #   P898: pɛs (normal) | 
| 143 |  |  |  |  |  |  |  | 
| 144 |  |  |  |  |  |  | =head1 DEPENDENCIES | 
| 145 |  |  |  |  |  |  |  | 
| 146 |  |  |  |  |  |  | L<Unicode::UTF8>, | 
| 147 |  |  |  |  |  |  | L<Wikibase::Datatype::Form>, | 
| 148 |  |  |  |  |  |  | L<Wikibase::Datatype::Statement>, | 
| 149 |  |  |  |  |  |  | L<Wikibase::Datatype::Snak>, | 
| 150 |  |  |  |  |  |  | L<Wikibase::Datatype::Value::Item>, | 
| 151 |  |  |  |  |  |  | L<Wikibase::Datatype::Value::Monolingual>, | 
| 152 |  |  |  |  |  |  | L<Wikibase::Datatype::Value::String>. | 
| 153 |  |  |  |  |  |  |  | 
| 154 |  |  |  |  |  |  | =head1 SEE ALSO | 
| 155 |  |  |  |  |  |  |  | 
| 156 |  |  |  |  |  |  | =over | 
| 157 |  |  |  |  |  |  |  | 
| 158 |  |  |  |  |  |  | =item L<Wikibase::Datatype> | 
| 159 |  |  |  |  |  |  |  | 
| 160 |  |  |  |  |  |  | Wikibase datatypes. | 
| 161 |  |  |  |  |  |  |  | 
| 162 |  |  |  |  |  |  | =item L<Wikibase::Datatype::Form> | 
| 163 |  |  |  |  |  |  |  | 
| 164 |  |  |  |  |  |  | Wikibase form datatype. | 
| 165 |  |  |  |  |  |  |  | 
| 166 |  |  |  |  |  |  | =back | 
| 167 |  |  |  |  |  |  |  | 
| 168 |  |  |  |  |  |  | =head1 REPOSITORY | 
| 169 |  |  |  |  |  |  |  | 
| 170 |  |  |  |  |  |  | L<https://github.com/michal-josef-spacek/Wikibase-Datatype> | 
| 171 |  |  |  |  |  |  |  | 
| 172 |  |  |  |  |  |  | =head1 AUTHOR | 
| 173 |  |  |  |  |  |  |  | 
| 174 |  |  |  |  |  |  | Michal Josef Špaček L<mailto:skim@cpan.org> | 
| 175 |  |  |  |  |  |  |  | 
| 176 |  |  |  |  |  |  | L<http://skim.cz> | 
| 177 |  |  |  |  |  |  |  | 
| 178 |  |  |  |  |  |  | =head1 LICENSE AND COPYRIGHT | 
| 179 |  |  |  |  |  |  |  | 
| 180 |  |  |  |  |  |  | © 2020-2023 Michal Josef Špaček | 
| 181 |  |  |  |  |  |  |  | 
| 182 |  |  |  |  |  |  | BSD 2-Clause License | 
| 183 |  |  |  |  |  |  |  | 
| 184 |  |  |  |  |  |  | =head1 VERSION | 
| 185 |  |  |  |  |  |  |  | 
| 186 |  |  |  |  |  |  | 0.29 | 
| 187 |  |  |  |  |  |  |  | 
| 188 |  |  |  |  |  |  | =cut |