forked from prestaconcept/PrestaSitemapBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
43 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
cs: | ||
phpcs --ignore=/vendor/*,/Tests/Resources/app/* --extensions=php --encoding=utf-8 --standard=PSR2 -np . | ||
phpcs --ignore=/vendor/*,/Tests/app/* --extensions=php --encoding=utf-8 --standard=PSR2 -np . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
|
||
/** | ||
* Class used for managing image's url entities | ||
* | ||
* | ||
* @author David Epely <[email protected]> | ||
* @author Alain Flaus <[email protected]> | ||
*/ | ||
|
@@ -28,12 +28,12 @@ class GoogleImage | |
|
||
/** | ||
* create a GoogleImage for your GoogleImageUrl | ||
* | ||
* @param string $loc | ||
* @param string $caption[optional] | ||
* @param string $geo_location[optional] | ||
* @param string $title[optional] | ||
* @param string $license[optional] | ||
* | ||
* @param string $loc | ||
* @param string $caption[optional] | ||
* @param string $geo_location[optional] | ||
* @param string $title[optional] | ||
* @param string $license[optional] | ||
*/ | ||
public function __construct($loc, $caption = null, $geo_location = null, $title = null, $license = null) | ||
{ | ||
|
@@ -45,7 +45,9 @@ public function __construct($loc, $caption = null, $geo_location = null, $title | |
} | ||
|
||
/** | ||
* @param string $internal_uri | ||
* @param $loc | ||
* | ||
* @return $this | ||
*/ | ||
public function setLoc($loc) | ||
{ | ||
|
@@ -54,15 +56,17 @@ public function setLoc($loc) | |
} | ||
|
||
/** | ||
* @return string | ||
* @return mixed | ||
*/ | ||
public function getLoc() | ||
{ | ||
return $this->loc; | ||
} | ||
|
||
/** | ||
* @param string $caption | ||
* @param $caption | ||
* | ||
* @return $this | ||
*/ | ||
public function setCaption($caption) | ||
{ | ||
|
@@ -71,15 +75,17 @@ public function setCaption($caption) | |
} | ||
|
||
/** | ||
* @return string | ||
* @return string | ||
*/ | ||
public function getCaption() | ||
{ | ||
return $this->caption; | ||
} | ||
|
||
/** | ||
* @param string $caption | ||
* @param $geo_location | ||
* | ||
* @return $this | ||
*/ | ||
public function setGeoLocation($geo_location) | ||
{ | ||
|
@@ -88,15 +94,17 @@ public function setGeoLocation($geo_location) | |
} | ||
|
||
/** | ||
* @return string | ||
* @return mixed | ||
*/ | ||
public function getGeoLocation() | ||
{ | ||
return $this->geo_location; | ||
} | ||
|
||
/** | ||
* @param string $title | ||
* @param $title | ||
* | ||
* @return $this | ||
*/ | ||
public function setTitle($title) | ||
{ | ||
|
@@ -105,15 +113,17 @@ public function setTitle($title) | |
} | ||
|
||
/** | ||
* @return string | ||
* @return mixed | ||
*/ | ||
public function getTitle() | ||
{ | ||
return $this->title; | ||
} | ||
|
||
/** | ||
* @param string $license | ||
* @param $license | ||
* | ||
* @return $this | ||
*/ | ||
public function setLicense($license) | ||
{ | ||
|
@@ -122,7 +132,7 @@ public function setLicense($license) | |
} | ||
|
||
/** | ||
* @return string | ||
* @return mixed | ||
*/ | ||
public function getLicense() | ||
{ | ||
|
@@ -131,8 +141,8 @@ public function getLicense() | |
|
||
/** | ||
* Return the xml representation for the image | ||
* | ||
* @return string | ||
* | ||
* @return string | ||
*/ | ||
public function toXML() | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters