dmBridge PHP API
DMShellCommand.php
00001 <?php
00002 #
00003 # dmBridge: a data access framework for CONTENTdm(R)
00004 #
00005 # Copyright © 2009, 2010, 2011 Board of Regents of the Nevada System of Higher
00006 # Education, on behalf of the University of Nevada, Las Vegas
00007 #
00008 
00013 final class DMShellCommand {
00014 
00018    private $command;
00019 
00023    public function __construct($command) {
00024       $this->setCommand($command);
00025    }
00026 
00031    public function equals($obj) {
00032       if (!$obj instanceof DMShellCommand) {
00033          return false;
00034       }
00035       return ($obj->getCommand() == $this->getCommand());
00036    }
00037 
00041    public function getCommand() {
00042       return $this->command;
00043    }
00044 
00048    public function setCommand($command) {
00049       $this->command = (string) $command;
00050    }
00051 
00052 }
 All Data Structures Functions Variables