Skip to content

Commit

Permalink
Property constructor parameter is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
thiemowmde committed Nov 25, 2014
1 parent 66de8e0 commit ba354a0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Entity/Property.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ class Property extends Entity implements StatementListProvider {
* @param string $dataTypeId
* @param StatementList|null $statements Since 1.1
*/
public function __construct( PropertyId $id = null, Fingerprint $fingerprint, $dataTypeId, StatementList $statements = null ) {
public function __construct(
PropertyId $id = null,
Fingerprint $fingerprint,
$dataTypeId,
StatementList $statements = null
) {
$this->id = $id;
$this->fingerprint = $fingerprint;
$this->setDataTypeId( $dataTypeId );
Expand Down Expand Up @@ -125,8 +130,7 @@ public static function newFromType( $dataTypeId ) {
return new self(
null,
Fingerprint::newEmpty(),
$dataTypeId,
new StatementList()
$dataTypeId
);
}

Expand Down

0 comments on commit ba354a0

Please sign in to comment.