public function setLogger($logger) {
		if(!in_array('Psr\Log\LoggerInterface', class_implements($logger, true))) {
			throw new \InvalidArgumentException('Logger object does not implement Psr\Log\LoggerInterface');
		}
		$this->logger = $logger;
	}
public function setLogger($logger) {
		if(!in_array('Psr\Log\LoggerInterface', class_implements($logger, true))) {
			throw new \InvalidArgumentException('Logger object does not implement Psr\Log\LoggerInterface');
		}
		$this->logger = $logger;
	}
public function setLogger ( $ logger ) { if ( ! in_array ( 'Psr\Log\LoggerInterface' , class_implements ( $ logger , true ) ) ) { throw new \ InvalidArgumentException ( 'Logger object does not implement Psr\Log\LoggerInterface' ) ; } $ this -> logger = $ logger ; }
Set the logger for the class to use

@param \Psr\Log\LoggerInterface $logger
Set the logger for the class to use