コード例 #1
0
ファイル: Regex.php プロジェクト: rickyrobinett/morph
	/**
	 * Returns this attributes value
	 *
	 * @return integer
	 */
	public function getValue()
	{
		return '/' . (string)parent::getValue()->regex . '/';
	}
コード例 #2
0
ファイル: Integer.php プロジェクト: rickyrobinett/morph
	/**
	 * Returns this attributes value
	 *
	 * @return integer
	 */
	public function getValue(){
		return (int)parent::getValue();
	}
コード例 #3
0
 public function testDefault()
 {
     $property = new Generic('TestProperty', 'TestValue');
     $this->assertEquals('TestValue', $property->getValue());
 }
コード例 #4
0
ファイル: Boolean.php プロジェクト: rickyrobinett/morph
	/**
	 * Returns this attributes value
	 *
	 * @return boolean
	 */
	public function getValue(){
		return (boolean)parent::getValue();
	}
コード例 #5
0
ファイル: String.php プロジェクト: rickyrobinett/morph
 /**
  * Returns this attributes value
  *
  * @return string
  */
 public function getValue(){
     return (string)parent::getValue();
 }
コード例 #6
0
ファイル: String.php プロジェクト: rmsy/opentrackr
 /**
  * Returns this attributes value
  *
  * @return string
  */
 public function getValue()
 {
     return null === parent::getValue() ? null : (string) parent::getValue();
 }