PHP 클래스 FeedFunction, googleads-php-lib

It is of the form (Operand... Operator Operand...) We can represent expressions like this easily:

For example "feed_attribute == 30" can be represented as:
FeedId feedId = (FeedId of Feed associated with feed_attribute)
FeedAttributeId feedAttributeId = (FeedAttributeId of feed_attribute)
Function function = new Function();
function.setLhsOperand(
Arrays.asList((Operand) new FeedAttributeOperand(feedId, feedAttributeId)));
function.setOperator(Operator.IN);
function.setRhsOperand(
Arrays.asList((Operand) new ConstantOperand(30L)));
Another example matching on multiple values:
"feed_item_id IN (10, 20, 30)" can be represented as:

Function function = new Function();
function.setLhsOperand(
Arrays.asList((Operand) new RequestContextOperand(ContextType.FEED_ITEM_ID)));
function.setOperator(Operator.IN);
function.setRhsOperand(Arrays.asList(
(Operand) new ConstantOperand(10L), new ConstantOperand(20L), new ConstantOperand(30L)));
파일 보기 프로젝트 열기: googleads/googleads-php-lib

공개 프로퍼티들

프로퍼티 타입 설명
$functionString string
$lhsOperand FunctionArgumentOperand[]
$operator tnsFunctionOperator
$rhsOperand FunctionArgumentOperand[]

공개 메소드들

메소드 설명
__construct ( $operator = null, $lhsOperand = null, $rhsOperand = null, $functionString = null )
getNamespace ( ) : string Gets the namesapce of this class
getXsiTypeName ( ) : string Gets the xsi:type name of this class

메소드 상세

__construct() 공개 메소드

public __construct ( $operator = null, $lhsOperand = null, $rhsOperand = null, $functionString = null )

getNamespace() 공개 메소드

Gets the namesapce of this class
public getNamespace ( ) : string
리턴 string the namespace of this class

getXsiTypeName() 공개 메소드

Gets the xsi:type name of this class
public getXsiTypeName ( ) : string
리턴 string the xsi:type name of this class

프로퍼티 상세

$functionString 공개적으로 프로퍼티

public string $functionString
리턴 string

$lhsOperand 공개적으로 프로퍼티

public FunctionArgumentOperand[] $lhsOperand
리턴 FunctionArgumentOperand[]

$operator 공개적으로 프로퍼티

public tnsFunctionOperator $operator
리턴 tnsFunctionOperator

$rhsOperand 공개적으로 프로퍼티

public FunctionArgumentOperand[] $rhsOperand
리턴 FunctionArgumentOperand[]