Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change filename to src to better reflect what its job is

  • Loading branch information...
commit 523ec7ef164cf278d07bcbdf6796f66f0bc4a22c 1 parent 1335e08
@iampersistent iampersistent authored
View
19 lib/Vespolina/Entity/Asset/Asset.php
@@ -18,7 +18,7 @@ class Asset implements AssetInterface
protected $id;
protected $label;
protected $priority;
- protected $fileName;
+ protected $src;
protected $height;
protected $width;
protected $mime;
@@ -43,7 +43,6 @@ function getLabel()
return $this->label;
}
-
/**
* Set the asset priority
*
@@ -64,23 +63,19 @@ function getPriority()
}
/**
- * Set the asset filename
- *
- * @param $fileName
+ * @inheritdoc
*/
- function setFileName($fileName)
+ function setSrc($src)
{
- $this->fileName = $fileName;
+ $this->src = $src;
}
/**
- * Get the asset file name.
- *
- * @return fileName
+ * @inheritdoc
*/
- function getFileName()
+ function getSrc()
{
- return $this->fileName;
+ return $this->src;
}
/**
View
13 lib/Vespolina/Entity/Asset/AssetInterface.php
@@ -41,17 +41,18 @@ function setPriority($priority);
function getPriority();
/**
- * Set the asset file name
+ * Set the src url for the asset
*
- * @param $fileName
+ * @param string $src
*/
- function setFileName($fileName);
+ function setSrc($src);
/**
- * Get the asset file name.
- * @return fileName
+ * Return the src url for the asset
+ *
+ * @return string
*/
- function getFileName();
+ function getSrc();
/**
* Set the asset height
Please sign in to comment.
Something went wrong with that request. Please try again.