Skip to content

Instantly share code, notes, and snippets.

@Najaf
Created November 23, 2009 17:06
Show Gist options
  • Save Najaf/241191 to your computer and use it in GitHub Desktop.
Save Najaf/241191 to your computer and use it in GitHub Desktop.
<?php
class Song {
private $duration;
private $name;
//Getters/Setters
function setName( $name ) {
return $this->name;
}
function getName( $name ) {
return $this>name;
}
function setDuration( $duration ) {
$this->duration = $duration;
}
function getDuration() {
return $this->duration;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment